Install-WindowsFeature DHCP -IncludeManagementTools netsh dhcp add securitygroups Restart-service dhcpserver Add-DhcpServerInDC <hostname of the DHCP server> <IP address of the DHCP server> Set-ItemProperty –Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\Roles\12 –Name ConfigurationState –Value 2