Install DHCP on Windows server 2016 core
- Install DHCP role with management tools
- perform post installation tasks
- restart the service
- tell windows that the post installation tasks are complete
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