Windows Server Core - Initial Setup Commands

Register & Activate your Windows Server

slmgr.vbs -ipk [key]

slmgr.vbs -ato

Get the computer name

hostname

Change the computer name

netdom renamecomputer [currentname] /NewName:[newname]

Reboot the computer

Shutdown -r -t 0

Set static IP address on the server

Netsh int ipv4 set address "Local Area Connection" static 10.10.10.10 255.255.255.0 10.10.10.1

Set DHCP address on the server

Netsh int ipv4 set address "Local Area Connection" source=dhcp

Join the computer to a domain

netdom join [ComputerName] /Domain:[DomainName] /UserD:[UserName] /PasswordD:[******]

Remove the computer from the domain

netdom remove

Enable remote management to the server core

sconfig

Configure Hyper-V role

Dism /online /enable-feature /featurename:Microsoft-Hyper-V