Windows Management and Scripting

A wealth of tutorials Windows Operating Systems SQL Server and Azure

Cleanup the Exchange 2003 from Active Directory to install Exchange 2010

Posted by Alin D on August 12, 2011

When installing Exchange 2010, one area that you can overlook is the state of Active Directory. When you install Exchange 2010, Setup assumes that the Active Directory database is in pristine condition. However, organizations that have been using Exchange for many years often have Exchange 2003 remnants in AD. These remnants can halt an Exchange 2010 installation. The method described in this article should remove the server in question from Active Directory to the point where you’re able to install Exchange 2010.

Warning! Any mistakes made during implementation can damage Exchange servers or you’re the Active Directory forest. Back up domain controllers before attempting any of these techniques.

These procedures are only intended for situations in which a server no longer exists in your organization, but some fragments have been left behind in AD. If the server still exists in your Exchange organization, you should remove it.

To remove any lingering portions of an old Exchange 2003 server from Active Directory, use the Windows Support Tool ADSI Edit.

The Windows Support Tools are included with Windows Server, but are not installed by default. The exact method to install these tools varies depending on the version of Windows you’re using. If you’re having trouble locating it, look for an installer in the SupportTools folder on the Windows installation DVD.

Next, open ADSI Edit, which is located in the Program FilesSupport Tools folder, and connect it to a domain controller, if necessary. Then navigate through the console tree to:

Configuration
CN=Configuration, DC=<your domain>, DC=com
CN=Services
CN=Microsoft Exchange
CN=<your organization name>
CN=Administrative Groups
CN=<Your Administrative Group Name> Note: This could also be an Exchange 5.5 site name
CN=Servers

These container names may not exactly match those in your organization. For example, the first node of the hierarchy that I’ve listed is Configuration. Although this is technically the node’s name, ADSI Edit also displays the name of your domain controller in brackets. For example, on my server this container is listed as Configuration [tazmania.production.com]

Selecting the CN=Servers container lists Exchange servers within the administrative group that you’ve selected. If you need to eliminate references to a specific server, right-click on the server object (not the CN=Servers container) and select Delete. A confirmation will ask if you want to delete that server. Verify that you’ve selected the correct server and click Yes.

 

In some situations, there may be a few stray objects, such as routing group connectors, that must be manually removed. Use Exchange management tools to manually remove these objects.

 

Leave a comment