KB ID 0001177Â
You have probably tried to do this and found he option ‘greyed out’ because in the DHCP management console you can’t changeÂ the subnet mask of a scope.Â
I needed to change a clients DHCP scope because I was changing their subnetÂ from /24 to /16. I could have simply deleted and recreated the scope, but they has a lot of custom settings for their phone system, and hundreds of reservations (which I know is unusual).
I wrote an article a long time ago about migrating DHCP scopes, this process uses the same method to take a backup of the scope, then you can edit the subnet mask, and ‘re-import’ the scope again.
First take a backup of the scope, open anÂ administrative command window, and run the following command;
netsh dhcp server \\â€ťServer nameâ€ť scope â€śscope subnetâ€ť dump>c\:dhcp.txt
i.e. netsh dhcp server \\Server-DC01Â scopeÂ 10.0.0.0Â dump >c:\temp\dhcp.txt
Then open the C:\dhcp.txt file, and locate the subnet mask;
Edit it accordingly, and save the changes.
You can now DELETE the live scope, then reimport the one you just edited with the following command;
netsh dhcp server import c:\temp\dhcp.txt all
Server 2012 DHCP Import Warning
With Server 2012 / 2012 R2 you may receive the following warning;
The request is not supported
If so, use the following syntax;
netsh exec c:\temp\dhcp.txtÂ
Related Articles, References, Credits, or External Links