Authorizing a DHCP server using Netsh

by Mitch Tulloch [Published on 4 Aug. 2009 / Last Updated on 6 March 2009]

You can use the Netsh command to authorize a DHCP server from the command line.

You can use the Netsh command to authorize a DHCP server from the command line. In an Active Directory environment, you must first authorize your DHCP server before it can lease addresses to clients.

For example, to authorize a DHCP server named NYC-DHCP-01 in the CONTOSO domain and which has IP address 10.10.20.51, type the following command:

netsh dhcp add server NYC-DHCP-01.contoso.com 10.10.20.51

To verify the result, type this command:

netsh dhcp show server

If you decide later to remove the server from your network, you can unauthorized it by typing:

netsh dhcp delete server NYC-DHCP-01.contoso.com 10.10.20.51

Featured Links