Friday, January 20, 2017

How to manually remove an Exchange server from Active Directory

There are some instances where an uninstalled Exchange server still hangs around Active Directory. To manually remove it do the following:

Connect to a domain controller -- probably best to connect to the PDC emulator
Launch the run box (Windows Key + R)
Type in the command “adsiedit.msc” and click “OK”
Right click on the console then “Connect to:”
In the connection dialog select “Well known Naming Context”
In the drop down menu select “Configuration”
Explode “CN=Configuration [domain]\CN=Services\CN=Microsoft Exchange\CN=[organization]\CN=Administrative Groups\CN=Servers”
Right click on the dead server and pick “Delete”

You also need to delete Database information as well

Navigate to “CN=Configuration [domain]\CN=Services\CN=Microsoft Exchange\CN=[organization]\CN=Administrative Groups\CN=Databases”
Explore each item to find wich one is related to the old server, then delete it as well.