Powershell - DHCP Scopes in Powershell
问题 Working on a script to fully automate the deployment of a new 2012 box as a DC - with Windows updates configured, AD installed, Forest Created, DNS zones configured, DHCP scopes activated etc. I am working on the DHCP part at the moment and have the following: Add-WindowsFeature -IncludeManagementTools dhcp netsh dhcp add securitygroups Restart-service dhcpserver Add-DhcpServerInDC $Env:COMPUTERNAME $ip Add-DhcpServerv4Scope -Name "Client LAN" -StartRange $ipRangeStart -EndRange $ipRangeEnd -