Microsoft KB Archive/833396

= How to remove Exchange Server 2003 from your computer =

Article ID: 833396

Article Last Modified on 11/3/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange Server 2003 Enterprise Edition

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



For a Microsoft Exchange 2000 Server version of this article, see 260378.

Warning Before you remove a Microsoft Exchange Server 2003 server from a production environment that has multiple servers in the site, make sure that you know all the roles that are held by the server. Take steps to move those roles to another server before you follow the steps in this article to remove the Exchange Server. For example, the server may hold special roles such as site folder server or routing group master, or the server could be listed as a bridgehead server on a connector such as an SMTP connector or a routing group connector.

If you do not transfer these roles to another server before you remove the Exchange server, you may experience adverse effects including the following:
 * Mail flow may stop if the server is a messaging bridgehead server.
 * Free/busy problems may occur if the server is the site folder server.
 * Mail flow may be adversely affected if the server is the routing group master, because the link state data for the remaining servers in the site is not updated for each other and the link state data for the remaining servers in the site is not updated to other sites.
 * Other adverse effects may occur depending on the role the server holds.

If this Exchange server is the only server in the site, role transfers are not an issue.

For more information about some of the roles held by an Exchange server and how to move them, click the following article number to view the article in the Microsoft Knowledge Base:

822931 How to remove the first Exchange Server 2003 computer from the administrative group



SUMMARY
''This how-to article describes the steps to automatically or manually remove Microsoft Exchange Server 2003 from your computer.

Before you can remove Exchange 2003, you must disconnect all mailbox-enabled users from the mailboxes on the Exchange server. After all mailbox-enabled users have been disconnected, you can use the Exchange 2003 Setup program to remove Exchange 2003.

However, you may not be able to use the Exchange 2003 Setup program to remove Exchange 2003. In this scenario, you can manually remove Exchange 2003. You must first stop and disable all Exchange services. You can then use Registry Editor to remove registry keys that are part of the Exchange installation. After you have removed the registry keys, you must remove and then reinstall Microsoft Internet Information Services (IIS). You must then reinstall any service packs or security updates that had been installed on your server.

If you have a clustered server, do not remove the Common Files, or the Cluster service will also be removed. If this service is removed, you must reinstall the Cluster service.''



INTRODUCTION
A situation may occur when you must remove Microsoft Exchange Server 2003 from your computer. Before you can remove Exchange 2003 from your computer, you must disconnect all mailbox-enabled users from the mailboxes on the Exchange server. You can then run the Exchange Server 2003 Installation Wizard and click the Remove option for the installed components on the Component Selection screen.

However, if you cannot use the Exchange Server 2003 Installation Wizard to remove Exchange 2003, you can use Registry Editor to manually remove the registry settings for Exchange 2003.

Use the Active Directory User and Computers snap-in to disconnect all mailbox-enabled users
You cannot remove the Exchange 2003 components if the Exchange server still has mailboxes for mailbox-enabled users. To use the Active Directory User and Computers snap-in to disconnect all mailbox-enabled users, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
 * 2) Expand  , and then click Users.

Note In this step,  is a placeholder for the name of your domain.
 * 1) Press and hold CTRL, click the user name of each user who has a mailbox on the server, right-click the user names that you selected, click Exchange Tasks, and then release CTRL.
 * 2) In the Select a task to perform list, click Delete Mailbox, and then click Next.
 * 3) On the Delete Mailbox page, click Next.
 * 4) Wait for the mailboxes to be deleted, and then click Finish.

Run the Exchange Server 2003 Setup program to remove the installed components
You can remove the Exchange components by running the Exchange Server 2003 Setup program from Add/Remove Programs in Control Panel on the computer that is running Exchange Server 2003. To do this, follow these steps.

Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
 * 1) Click Start, point to Settings, and then click Control Panel.
 * 2) Double-click Add/Remove Programs.
 * 3) In the Currently installed programs list, click Microsoft Exchange, and then click Change/Remove.
 * 4) In Microsoft Exchange Installation Wizard, click Next.
 * 5) In the Action list on the Component Selection page, click the down arrow next to each component that has been installed, and then click Remove.

Note Installed components have a check mark in the Action list. When you click Remove, the check mark is replaced by the word Remove.
 * 1) Click Next two times.
 * 2) Click Finish.

Manually remove Exchange 2003
If you cannot remove Exchange 2003 by using Add/Remove Programs, you can use Registry Editor to remove the Exchange entries from the registry. Before you edit the registry, you must stop and disable all Exchange 2003 services on the computer.

Stop and disable the Exchange 2003 services
The following table lists the core Exchange Server 2003 services:

To stop and disable the Exchange 2003 services, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Services.
 * 2) In the Name list, right-click an Exchange service, and then click Stop.
 * 3) After the service stops, right-click the Exchange service again, and then click Properties.
 * 4) In the Startup type list, click Disabled, and then click OK.
 * 5) Repeat steps 1 through 4 for every Exchange service.

Use Registry Editor to remove the Exchange registry keys
To remove the Exchange registry keys, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry key:

 Right-click Exchange, and then click Delete. Click Yes in the Confirm Key Delete dialog box. Repeat steps 2 and 3 for each of the following registry keys:

If there is a Notes connector or a GroupWise connector installed on the server that is running Exchange Server 2003, remove the related registry entries in :
 * Anything that starts with LME-
 * Anything that starts with SERVERNAME-LME

If Microsoft Office 2003, Office XP, or Microsoft Windows SharePoint Service is not installed, remove the related registry entries in :
 * MSSEARCH

Additionally, you must rename the :\Program Files\Microsoft Integration\Microsoft Exchange 2003 folder. For example, rename Drive:\Program Files\Microsoft Integration\Microsoft Exchange to :\Program Files\Microsoft Integration\Microsoft Exchange Old.

Remove and reinstall the Internet Information Services (IIS) component
To remove and reinstall IIS, use one of the following methods, depending on your environment:

For a Windows 2000-based cluster node or for a standalone server that is running Microsoft Windows 2000 or Microsoft Windows Server 2003
Important If your computer is a clustered server, you must remove only the IIS component. Do not remove the Common Files. If you remove the Common Files, you also remove the Cluster service. If you remove the Cluster service, you must reinstall it.

Note Make a note of any service packs and security updates that were previously installed on your server. You must reinstall them.

To remove the IIS component, follow these steps:  To remove the IIS component from a computer that is running Microsoft Windows 2000 Server, follow these steps:  In Control Panel, double-click Add/Remove Programs.</li> Click Add/Remove Windows Components.</li> In the Components list, click to clear the Internet Information Services (IIS) check box.

Note If your computer is a clustered server, click Details, click to clear all the subcomponent check boxes except the Common Files check box, and then click OK.</li> Click Next, and then click Finish.</li></ol>

To remove the IIS component from a computer that is running Microsoft Windows Server 2003, follow these steps:  In Control Panel, double-click Add or Remove Programs.</li> Click Add/Remove Windows Components.</li> Click Application Server, and then click Details.</li> Click to clear the ASP.NET check box, and then click to clear the Internet Information Services check box.</li> In the Application Server dialog box, click OK.</li> In the Windows Components Wizard, click Next.</li></ol> </li> Restart your server.</li> Start Windows Explorer, and then locate the Exchsrvr folder.</li> Rename the Exchsrvr folder to Exchsrvrold.</li> Remove the following file from the %systemroot%\system32\inetsrv folder. For Windows Server 2003, remove the Metabase.xml file. For Windows 2000 Server, remove the Metabase.bin file.

Note The Windows Component Wizard may have already removed the Metabase.xml file or the Metabase.bin file.</li> <li>Reinstall the IIS component.

To reinstall the IIS component on a computer that is running Windows 2000 Server, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In Control Panel, double-click Add/Remove Programs.</li> <li>Click Add/Remove Windows Components.</li> <li>In the Components list, click to select the Internet Information Services (IIS) check box.</li> <li>Click Next, and then click Finish.

</li></ol>

To reinstall the IIS component on a computer that is running Windows Server 2003, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In Control Panel, double-click Add or Remove Programs.</li> <li>Click Add/Remove Windows Components.</li> <li>Click Application Server, and then click Details.</li> <li>Click to select the ASP.NET check box, and then click to select the Internet Information Services check box.</li> <li>Click Next, and then click Finish.</li></ol>

Note If your computer is running Windows Server 2003, remember to reinstall ASP.NET and the SMTP and NNTP services.</li> <li>Reinstall any service packs and security updates that were previously installed on your server.</li></ol>

For a Windows Server 2003-based cluster node
To remove and reinstall IIS on a Windows Server 2003-based cluster node, follow these steps.

Note These steps describe how to remove and reinstall IIS on the passive node of a server cluster. <ol> <li>Remove IIS from the passive cluster node. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type appwiz.cpl, and then click OK.</li> <li>Click Add/Remove Windows components.</li> <li>Click Application Server, and then click Details.</li> <li>Click to clear the ASP.NET check box, click to clear the Internet Information Services check box, and then click OK.</li> <li>Click Next.</li> <li>On the Completing the Windows Components Wizard page of the Windows Components Wizard, click Finish.</li></ol> </li> <li>Evict the passive cluster node from the server cluster. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the active node of the server cluster, start the Cluster Administrator program, and connect to the cluster that you want to manage.</li> <li>In the Cluster Administrator tool, expand the cluster, right-click the passive node, and then click Stop Cluster Service.</li> <li>Right-click the passive node, click Evict Node, and then click Yes to the following message that appears:

Evicting a node will prevent it from participating in the cluster. Are you sure node ' ' should be evicted from the cluster?

</li></ol> </li> <li>Force the Cluster Service to be returned to an unconfigured state on the now-evicted passive cluster node. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the active cluster node, click Start, click Run, type cmd, and then click OK.</li> <li>At the command prompt, type the following command, and then press ENTER:

cluster node  /force

In this command, replace  with the NetBIOS name of the now-evicted passive cluster node.</li></ol> </li> <li>Restart the evicted cluster node computer.</li> <li>Rejoin the evicted cluster node to the server cluster. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the active cluster node, start the Cluster Administrator tool, and then connect to the cluster that you want to manage.</li> <li>Right-click the cluster name, point to New, and then click Node.</li> <li>Follow the steps in the Add Node Wizard to add the evicted cluster node back to the server cluster.</li></ol> </li> <li>Reinstall IIS on the newly added passive cluster node. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the passive cluster node, click Start, click Run, type appwiz.cpl, and then click OK.</li> <li>Click Add/Remove Windows Components.</li> <li>Click Application Server, and then click Details.</li> <li>Click to select the Internet Information Services check box, click to select the ASP.NET check box, and then click OK.</li> <li>Click Next, and then click Finish.

Note You may also want to reinstall the SMTP and NNTP services.</li></ol> </li> <li>Reinstall any service packs and security updates that were previously installed on the server.</li></ol>

Remove the Exchange 2003 server object from the Exchange 5.5 Admin program
If the Exchange 2003 server is installed in an existing Microsoft Exchange Server 5.5 site, and you use the Exchange 5.5 Admin program, you must delete the Exchange 2003 server object from the Exchange 5.5 Admin program.

Note You may have to remove Active Directory objects that are associated with the server that you removed.

Remove the Exchange 2003 server from Active Directory
To remove the Exchange 2003 server from Active Directory, follow these steps:
 * 1) Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.
 * 2) Expand Administrative Groups/ /Servers.

Note In this step,  is a placeholder for the name of your administrative group.
 * 1) Right-click the name of the Exchange 2003 server that you want to remove, click All Tasks, and then click Remove Server.

This procedure will remove all references to the server in Active Directory and remove the mailbox-enabling attributes from all Active Directory users who have mailboxes on the server that you removed.

If you cannot install or run Exchange System Manager, you may use the ADSI Edit snap-in to manually remove enough of the server attributes so that you can try a successful reinstallation. This method does not perform cleanups of references to the server object outside the server's own container. Microsoft does not recommend that you use this method unless you intend to immediately reinstall the server in the same administrative group, because you may have to manually remove or edit many attributes on objects throughout Active Directory.

The ADSI Edit snap-in is available in Windows Support Tools. For more information about how to install Windows 2000 Support Tools, click the following article number to view the article in the Microsoft Knowledge Base:

301423 How to install the Windows 2000 Support Tools to a Windows 2000 Server-based computer

Warning If you use the ADSI Edit snap-in, the LDP utility, or any other LDAP version 3 client, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. These problems may require you to reinstall Microsoft Windows 2000 Server, Microsoft Windows Server 2003, Microsoft Exchange 2000 Server, Microsoft Exchange Server 2003, or both Windows and Exchange. Microsoft cannot guarantee that problems that occur if you incorrectly modify Active Directory object attributes can be solved. Modify these attributes at your own risk.

To use the ADSI Edit snap-in to remove an Exchange 2003 server from an Exchange 2003 administrative group, follow these steps: <ol> <li>Click Start, point to Programs, point to Windows 2000 Support Tools, point to Tools, and then click ADSI Edit.</li> <li>Expand each of the following items:

Configuration Container

CN=Configuration, DC= ,DC=com

CN=Services

CN=Microsoft Exchange

CN= 

CN=Administrative Groups

CN= 

CN=Servers

Note In this procedure,  is a placeholder for the name of your domain,   is a placeholder for the name of your organization, and   is a placeholder for the name of your administrative group or Exchange 5.5 site.</li> <li>Right-click the Exchange 2003 server object, and then click Delete.</li> <li>Click Yes in every adsiedit dialog box that prompts you to confirm the deletion.</li></ol>

Recommended action if you receive an error when you try to reinstall Exchange Server 2003
Warning If you use the ADSI Edit snap-in, the LDP utility, or any other LDAP version 3 client, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. These problems may require you to reinstall Microsoft Windows 2000 Server, Microsoft Windows Server 2003, Microsoft Exchange 2000 Server, Microsoft Exchange Server 2003, or both Windows and Exchange. Microsoft cannot guarantee that problems that occur if you incorrectly modify Active Directory object attributes can be solved. Modify these attributes at your own risk.

If you receive an error message when you try to reinstall Exchange Server 2003, you must use the ADSI Edit snap-in to change some attributes in Active Directory. When you try to reinstall Exchange Server 2003, you may receive the following error message:

To install the first Exchange server in a domain, or to run setup in &quot;/ForestPrep&quot; mode, you must be an Exchange Full Administrator at the organization level. You must use an account that has been granted the Full Exchange Administrator role on the Exchange organization using the Exchange Administrative Delegation Wizard. -- ID:64283.

To resolve this problem, follow these steps:
 * 1) Start ADSI Edit.
 * 2) If it is required, under the Computer area, click Default (Domain or Server that you logged in to) to connect to the domain controller, and then click OK.
 * 3) In the navigation pane, expand the following items:

CN=Configuration

DC= 

DC=com

CN=Services

CN=Microsoft Exchange
 * 1) Right-click the CN=  object, and then click Delete.
 * 2) Click Yes in every adsiedit dialog box that prompts you to confirm the deletion.
 * 3) Right-click CN=Microsoft Exchange, and then click Properties.
 * 4) On the Attributes tab, under Select which properties to view, click Both.
 * 5) From the Select what property to view pull-down menu, select Heuristics.
 * 6) To reset the Heuristics property, click Clear, and then click Apply. The Value(s) field will have a value of not set.
 * 7) Exit ADSI Edit.

Keywords: kbhowtomaster KB833396

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.