What is this?

This is basically where I write down stuff that I work with at my job as a GIS Technical Analyst (previously system administrator). I do it because it's practical for documentation purposes (although, I remove stuff that might be a security breach) and I hope it can be of use to someone out there. I frequently search the net for help myself, and this is my way of contributing.

Tuesday, June 1, 2010

Manual unauthorization of DHCP server in Active Directory

A while ago we moved our DHCP-server to another server, and unfortunately we forgot to unauthorize the old server in the process. Sloppy I know, but it does not seem to have any practical implications. The old server still shows up when I do a "netsh show dhcp servers" or use the DHCP-server MMC plugin. Anyway, I hate mess in Active Directory so I figured I should get rid of it.

Trying to unauthorize it from the DHCP-server MMC plugin would only result in a "there is no such object on the server"-warning and using "netsh dhcp delete server SERVER1 10.0.0.0" did not help either, so I had to do it manually.

First I deleted the old server (SERVER1) from ADSIedit:
CN=NetServices,CN=Services,CN=Configuration,DC=DOMAIN,DC=INTERNAL

then I edited the current (working) DHCP-server object:
CN=DhcpRoot,CN=NetServices,CN=Services,CN=Configuration,DC=DOMAIN,DC=INTERNAL
the "dhcpServers" attribute contained both the old server and the new server, so I deleted the old server from the list.

That seems to have done the trick (I speeded up the process my replicating my AD manually and restarting the dhcp-service).