Microsoft KB Archive/303351

= How to Use Netsh.exe to Authorize, Unauthorize and List DHCP Servers in Active Directory =

Article ID: 303351

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q303351



SUMMARY
This article describes how to use the Netsh.exe tool to authorize or unauthorize DHCP servers in Active Directory, and also to see what servers are authorized for the current domain.



Authorize a DHCP Server in Active Directory
Syntax: &quot;netsh dhcp add server ServerDNSServerIP&quot;

Parameters: ServerDNS is the DNS domain name of the DHCP server computer, and ServerIP is the IP address of the DHCP server computer.

Example: netsh dhcp add server dhcpsrv1.example.microsoft.com 10.2.2.2

This command adds a server with a DNS name of dhcpsrv1.example.microsoft.com and an IP address of 10.2.2.2 to the list of authorized servers in Active Directory.

Unauthorize a DHCP Server from the List of Authorized Servers in Active Directory
Syntax: &quot;netsh dhcp delete server ServerDNSServerIP&quot;

Parameters: ServerDNS is the DNS domain name of the DHCP server computer, and ServerIP is the IP address of the DHCP server computer.

Example: netsh dhcp delete server dhcpsrv1.example.microsoft.com 10.2.2.2

This command deletes the server with the DNS name of mycomp.mydom.microsoft.com and an IP address of 10.2.2.2 from the list of servers in Active Directory. This effectively removes any authorization for the DHCP Server service to run.

Display the List of Authorized Servers in Active Directory for the Current Domain
Syntax: &quot;Netsh dhcp show server&quot;

For more information about the add, delete and show commands you can use at a command prompt, type one of the following commands at a command prompt, and then press ENTER:

Add: netsh dhcp add /?

Show: netsh dhcp show /?

Delete: netsh dhcp delete /?

Keywords: kbhowto kbnetwork kbsetup KB303351

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.