Use Set-DhcpServerv4Scope and the -State parameter with a value of "InActive".
Deactivate a DHCP scope using Powershell
Hello,
I was wondering has anyone deactivated DHCP scopes using Powershell below? I'm just learning how to use Powershell and I know how to update Scope Options using Powershell but I was wondering can you Deactivate it using PowerShell? I would like to do many pulling from a list via a CSV file.
1 additional answer
Sort by: Most helpful
-
Limitless Technology 39,671 Reputation points
2021-10-29T16:32:55.64+00:00 Hello @Mike R ,
To disable the created scope, use this command:
Set-DhcpServerv4Scope -ComputerName DHCPServer -ScopeId 10.1.1.0 -State InActive
To Remove the created scope from the DHCP server use this command
Remove-DHCPServerv4Scope -ComputerName DHCPServer -ScopeId 10.1.1.0 -Force
--------
--If the reply was helpful, please don’t forget to upvote or accept as answer.--