Did you find this useful?
Socialize it today.


Unauthorizing DHCP Servers

Wednesday, January 11, 2012

There may be instances that you may see the old DHCP servers still listed when you view DHCP Authorized servers using the DHCP Admin console. While this should not cause any issues for existing DHCP servers that are currently in production, you will want to clean up the directory. You can view your Authorized DHCP Servers via the DHCP Admin console, via the NETSH command, or by using ADSIEdit.  Use one of the following methods:

Using the DHCP Admin Console

Launch the DHCP Admin console. You should have the admin console listed in your Administrative tools if you have Adminpak or RSAT tools installed on your computer. Once you have the admin console open, right click the DHCP object and click on "Manage Authorized Servers".

DHCP Admin Conole
Click on the server you want to unauthorize and click the "Unauthorize" button.

DHCP Manage Authorized Servers

Netsh

You can view and delete authorized servers using the netsh command. The command to show authorized DHCP servers in the directory is as follows: "netsh DHCP show servers". The results are as follows:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\dhcpAdmin>netsh dhcp show server

1 Server was found in the directory service:

      Server [dc1.contoso.com] Address [172.61.1.24] Ds location: cn=dc1.contoso.com

Command completed successfully.

C:\Users\dhcpAdmin>

To delete and unathorize the server, run the following command: “Netsh DHCP delete server ServerFQDN ServerIPaddress”

Netsh DHCP delete server dc1.contoso.com 172.61.1.24

ADSIEdit

If you use the ADSI Edit snap-in, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. Modify these attributes at your own risk.

  1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Sites and Services.
  2. Click Services, and then click Net Services. If you cannot see Services, click to select Show Services Node on the View menu.
  3. In the right pane, right-click the name of the DHCP servers that you cannot add to Active Directory, and then click Delete.
  4. When the Are you sure you want to delete this object? message appears, click Yes.
  5. Force replication of Active Directory to the other sites, or wait for the replication cycle to be completed.
  6. Click Start, click Run, type Adsiedit.msc in the Open box, and then click OK.
  7. Expand Configuration, expand CN=Configuration, expand CN=Services, and then click CN=NetServices.
  8. Right-click CN=DHCPRoot, and then click Properties.
  9. In the Select a property to view list, click DHCPServers.
  10. In the Values list, click the name of the new DHCP server, click Remove, and then click OK.
  11. Click CN=NetServices, right-click the entry for the new DHCP server, and then click Delete.
  12. Force replication of Active Directory to the other sites, or wait for the replication cycle to be completed.

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

MCITP Windows Server 2008 Enterprise Administrator: Training Kit 4-Pack: Exams 70-640 70-642 70-643 70-647 Windows Server 2008 R2 Unleashed