Monthly Archive

Categories

DHCP scope

After rebuilding my test machine for Server 2016 (with mixed results) I needed to add a DHCP scope to the environment. I blogged about the DHCP PowerShell module several years ago.

 

To quickly add a DHCP scope to the current server

Add-DhcpServerv4Scope -Name 'Manticore Scope'  `
-StartRange 10.10.54.2 -EndRange 10.10.54.30 `
-Description 'Scope for Manticore domain' `
-Type DHCP -State Active -SubnetMask 255.255.255.0 `
-LeaseDuration (New-TimeSpan -Days 2)

 

Set-DhcpServerv4OptionValue  -ScopeId 10.10.54.0 -DnsServer 10.10.54.201

 

I’ll save this as I’ll have to rebuild the machine when Windows 2016 RTM’s and possibly again if I can’t get the wireless adapter to work then.

Comments are closed.