The Blog

Basic Windows Server CMD Commands

While labbing with Windows Server Core 2008 R2 I realized I needed to brush up on some basic command line synxtax for simple things that we may not use very often.

Change local computer name
netdom renamecomputer localhost /newname:new_computername

Shutdown and restart
shutdown -r -t 0 (r=restart, t= time)

Show Current Network Interfaces
netsh interface ipv4 show interfaces

Configure Static IP
netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>

Configure DNS Server
netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP>index=1

Domain Controller Promotion
dcpromo /unattend:<path of the answer file>

This list came from working with Active Directory on Windows Server Core 2008 R2 while studying for the Microsoft 70-640 Active Directory exam. My next post will go into further detail about Server Core AD initial setup and configuration options.

Neil Bryan
IT Consultant & Technical Trainer
Neil Bryan is an IT consultant and technical trainer specializing in VMware, Citrix and Microsoft virtualization and infrastructure.

Leave a Reply

Skip to toolbar