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

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links