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

See Also


The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links