Quick Reference for Server Core Tasks
Updated: August 15, 2012
Applies To: Windows Server 2012 R2, Windows Server 2012
This topic is a collection of common administrative tasks for Server Core servers that you can perform locally or remotely from a command prompt.
Whenever possible, Windows PowerShell commands are used and are styled thus: Get-NetIPConfiguration. When no Windows PowerShell equivalent is available, run the indicated command at an ordinary command prompt or a Windows PowerShell prompt. These command are styled thus: Netdom remove
Configuration and installation
Networking and firewall
Updates and error reporting
Services, processes, and performance
Disk and file system
This topic includes sample Windows PowerShell cmdlets that you can use to automate some of the procedures described. For more information, see Using Cmdlets.
Set the local administrative password
Net user administrator *
Join a computer to a domain
For more information see Configure a Server Core Server
Confirm that the domain has changed
Remove a computer from a domain
Add a user to the local Administrators group.
net localgroup Administrators /add <domain>\<username>
Remove a user from the local Administrators group
net localgroup Administrators /delete <domain\username>
Add a user to the local computer
net user <domain\user name> /add *
Add a group to the local computer
net localgroup <group name> /add
Change the name of a domain-joined computer
Confirm the new computer name
Change the name of a computer in a work group
Disable paging file management
wmic computersystem where name="<computername>" set AutomaticManagedPagefile=False
Configure the paging file
wmic pagefileset where name=”<path/filename>” set InitialSize=<initialsize>,MaximumSize=<maxsize>
path/filename is the path to and name of the paging file
initialsize is the starting size of the paging file in bytes
maxsize is the maximum size of the paging file in bytes
Change to a static IP address
Set a static DNS address
Change to a DHCP-provided IP address from a static IP address
Enter a product key
Run slmgr.vbs –ipk <product key>, and then run slmgr.vbs –ato. For more information, see Configure a Server Core Server.
Activate the server locally
Run slmgr.vbs -ato
Activate the server remotely
If Slmgr.vbs fails to activate the computer, the resulting error message advises you to run Slui.exe, along with the error code for more information. Slui.exe is not included in Server Core installations—it is available in <versions>.
Configure your server to use a proxy server.
Run netsh Winhttp set proxy <servername>:<port number>
Configure your server to bypass the proxy for Internet addresses.
Run netsh winttp set proxy <servername>:<port number>bypass-list="<local>"
Display or modify IPSEC configuration.
Run netsh ipsec
Display or modify NAP configuration.
Run netsh nap
Display or modify IP-to-physical address translation.
Display or configure the local routing table.
View or configure DNS server settings.
Display protocol statistics and current TCP/IP network connections
Display protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP (NBT).
Display hops for network connections.
Trace hops for network connections.
Display the configuration of the multicast router
Enable remote administration of the firewall.
Run netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes
Install an update
Run wusa <update>.msu /quiet
List installed updates
Remove an update
Configure automatic updates
Enable error reporting
Participate in the Customer Experience Improvement Program (CEIP)
List running services
Start a service
Stop a service
Retrieve a list of running applications and associated processes
Stop a process forcibly
Start Task Manager
Manage the performance counters and logging with commands such as typeperf, logman, relog, tracerprt.
Use Get-EventLog and related cmdlets; see http://technet.microsoft.com/library/ee176846.
Manage disk partitions
For a complete list of commands, run diskpart /?
Manage software RAID
For a complete list of commands, run diskraid /?
Manage volume mount points
For a complete list of commands, run mountvol /?
Defragment a volume
For a complete list of commands, run defrag /?
Convert a volume to the NTFS file system
Run convert <volume letter> /FS:NTFS
Compact a file
For a complete list of commands, run compact /?
Administer open files
For a complete list of commands, run openfiles /?
Administer VSS folders
For a complete list of commands, run vssadmin /?
Administer the file system
For a complete list of commands, run fsutil /?
Verify a file signature
For a complete list of commands, run sigverif /?
Take ownership of a file or folder
For a complete list of commands, run icacls /?
Add a driver for a new hardware device
Remove a driver for a hardware device