• Photos Photos
  • Linked In Linked In
  • Google + Google +
  • Facebook Facebook
  • Flickr Flickr
  • Vimeo Vimeo

www.gavinwill.me.uk

Photography, IT, Bikes and more.

  • Pages

    • About
    • Blog
    • Contact
    • Home
  • Archives

    • January 2013
    • September 2012
    • August 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
    • November 2011
  • Search:

Posts

  • View Archive

Old DHCP servers still listed in Active Directory

With having completed a migration from SBS 2003 to seperate Domain Controllers and Exchange 2010 I noticed that when starting DHCP administrative tool from my workstation that when selecting the authorized DHCP server it still listed the old server along with the new server where DHCP was now running. Whilst this did not cause any real problems I wanted to clean it up and reduce confusion by only showing valid authorised DHCP server.

The command

Netsh DHCP show server

Netsh DHCP show server

shows the authorised servers.

The command

Netsh DHCP delete server ServerFQDN ServerIP address

Netsh DHCP delete server ServerFQDN ServerIP address

should remove the server from the list however I recieved the error:

  • “There is no such object on the server”

To get around this I had to use the very handy (but potentially dangerous) tool ADSI Edit. To remove the old dhcp server reference you need to :

1. Start Adsiedit.msc.
2. Open the configuration Container.
3. Expand Services.
4. Expand Net Services.

In here I saw a reference to the server that was the old DHCP server and was now decomissioned and removed from the network. Therefore I selected the old server and deleted. A quick check again running

Netsh DHCP show server

Netsh DHCP show server

showed the correct servers. Using the DHCP administrative tool it also showed the correct authorised server. A small point but keeping Active Directory clean is an important task.

  • December 7, 2011
  • Active Directory
  • 0
Cancel Reply

Copyright © 2021 www.gavinwill.me.uk.

  • LinkedIn
  • Google +
  • Facebook
  • Flickr
  • Vimeo
Back to Top