Computers & ProgrammingComputers & NetworkingWindows Server

Unauthorizing DHCP Servers

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.

36C959B2Ee8846Bab9205Ee2556Beedd

Click on the server you want to unauthorize and click the Unauthorize button.

D81677F2C6Ff42808Dd321B9Aea0511A

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top