Subscribe to Windows IT Pro
December 19, 2007 12:00 AM

Q. How can I view, add, and remove authorized DHCP servers from the command line?

Windows IT Pro
InstantDoc ID #97863
Rating: (5)
A. On a server with DHCP installed, use the Netsh command to manage DHCP server authorization. If the DHCP component isn’t installed, the Netsh command won’t have the necessary DHCP options.

To show all currently authorized DHCP servers, use the Netsh DHCP Show Server command as shown below:

netsh dhcp show server
1 Servers were found in the directory service:
Server [savdaldc02.savilltech.net] Address [192.168.1.11] Ds location:
cn=savdaldc02.savilltech.net
Command completed successfully.

To unauthorize a server, use the Netsh DHCP Add Server <server name> <server IP address> command. To remove a server use the Netsh DHCP Delete Server <server name> <server IP address> command. If a server on the list doesn’t have a name, use a period in the Delete command for the server name: Netsh DHCP Delete Server . <server address>.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.