Changing DHCP scope options using netsh

Here’s a quick post that will hopefully save some time for those in similar situation. Last night I was trying modify a scope option but due to the fact that the option was set at the server level, I could not change it through the GUI.

When this happens, there is another option, doing it through the command line using netsh. It’s quite simple actually. Let’s say I wanted to change the scope option 003, we’ll then have to do run the following command:

netsh dhcp server <ip address> scope <ip address> set optionvaule 003 ipaddress <ip address>

Lets say that my DHCP server IP is 10.10.10.15 and my scope subnet is 10.10.10.0 and I want my option 003 IP address to be 10.10.10.1, then the command will look like this:

netsh dhcp server 10.10.10.15 scope 10.10.10.0 set optionvalue 003 ipaddress 10.10.10.1

This will change the scope option 003 IP address to 10.10.10.1 even though we defined a server option and could not change it within the GUI.

Here’s also a link with more on the netsh options when working with DHCP, Netsh Commands for DHCP

This entry was posted in Uncategorized by Andrey. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>