How to Remove Exchange 2007 Server Roles

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic describes how to use the Exchange Server 2007 Setup wizard or the Setup.com command to remove Microsoft Exchange Server 2007 server roles from a computer that is running Windows Server 2003 or Windows Server 2008.

For instructions about how to completely remove Exchange 2007 from a server, including removing all server roles, all installation files, the Exchange server object and all its child objects from the Active Directory directory service, see How to Completely Remove Exchange 2007 from a Server.

Note

If you remove all server roles and remove the Exchange management tools, you will completely remove Exchange from the server. This includes the removal of all installation files, the Exchange server object and all its child objects from Active Directory.

For instructions about how to remove an Exchange 2007 organization, see How to Remove an Exchange 2007 Organization.

Before You Begin

To perform the following procedures, the account you use must be delegated the following:

  • Exchange Organization Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Also, before you perform these procedures, confirm the following:

  • The Exchange 2007 server role that you want to remove is already installed on the computer.

  • If you are removing the Mailbox server role, you have either deleted, disabled, or moved all mailboxes, public folders and public folder replicas to another Mailbox server.

  • If you have installed any Update Rollups for Exchange 2007, you must use either Add or Remove Programs to remove Exchange or Exchange server roles, or you must run Setup.com from the original installation media or source files. You cannot use Setup.com from the bin folder to modify or remove an Exchange installation. If you do not remove the Update Rollups and you use Setup.com from the bin folder, the following error message will be displayed: The is a version mismatch between the running application and the installed application.

Procedure

Exchange 2007 RTM and Exchange 2007 Service Pack 1 (SP1) running on Windows Server 2003

This section contains the graphical user interface (GUI) and command-line procedures that are specific to Windows Server 2003.

To use the Exchange Server 2007 Setup wizard to remove an Exchange 2007 server role

  1. Log on to the server from which you want to remove Exchange 2007 server roles.

  2. Open Control Panel and then double-click Add or Remove Programs.

  3. On the Change or Remove Programs page, select Microsoft Exchange Server, and then click Remove.

    Note

    If you click Change instead of Remove, you can add server roles, but you cannot remove server roles.

  4. In the Exchange Server 2007 Setup wizard, on the Exchange Maintenance Mode page, click Next.

  5. On the Server Role Selection page, clear the check boxes for the server roles that you want to remove, and then click Next.

    Note

    By default, all server roles are selected. This indicates that no server roles will be removed. To remove a server role, you must clear the appropriate check box.

  6. On the Readiness Checks page, after the check completes, click Uninstall.

  7. On the Completion page, click Finish.

  8. (Optional) If you are removing the Mailbox server role from a computer, remove the Exchange database files (*.edb) and storage group log files (*.log) from the server.

    Note

    If you reinstall the Mailbox server role on this server, you must first remove the database and log files from the server.

To use the Setup.com command to remove an Exchange 2007 server role

  1. Log on to the server on which you want to remove one or more Exchange 2007 server roles.

  2. Open a Command Prompt window and navigate to the directory where you installed the Exchange Server 2007 files. By default, this directory is %programfiles%\Microsoft\Exchange Server.

  3. Navigate to the \bin directory.

    Note

    %programfiles%\Microsoft\Exchange Server\bin is in your path, so you can run this command from anywhere, without navigating to this directory.

  4. Use the following syntax for Setup.com:

    Setup.com /mode:uninstall /role:<server roles to remove>

    Where <server roles to remove> must be one or more of the following, in a comma-separated list:

    • HubTransport (or HT, or H)

    • ClientAccess (or CA, or C)

    • EdgeTransport (or ET, or E)

    • Mailbox (or MB, or M)

    • UnifiedMessaging (or UM, or U)

    • ManagementTools (or MT, or T)

  5. (Optional) If you are removing the Mailbox server role from a computer, remove the Exchange database files and storage group log files from the server.

    Note

    If you reinstall the Mailbox server role on this server, you must first remove the database and log files from the server.

Exchange 2007 SP1 running on Windows Server 2008

This section contains the graphical user interface (GUI) and command-line procedures that are specific to Windows Server 2008.

Note

Windows Server 2008 includes several features that have been enhanced or renamed. For information about the feature changes between Windows Server 2003 and Windows Server 2008, see Terminology Changes.

To use the Exchange Server 2007 SP1 Setup wizard to remove an Exchange 2007 server role

  1. Log on to the server from which you want to remove Exchange 2007 server roles.

  2. Open Control Panel, and then double-click Programs and Features.

  3. In Programs and Features, select Microsoft Exchange Server 2007, and then click Uninstall.

    Note

    If you click Change instead of Uninstall, you can add server roles, but you cannot remove server roles.

  4. In the Exchange Server 2007 SP1 Setup wizard, on the Exchange Maintenance Mode page, click Next.

  5. On the Server Role Selection page, clear the check boxes for the server roles that you want to remove, and then click Next.

    Note

    By default, all server roles are selected. This indicates that no server roles will be removed. To remove a server role, you must clear the appropriate check box.

  6. On the Readiness Checks page, after the check completes, click Uninstall.

  7. On the Completion page, click Finish.

  8. (Optional) If you are removing the Mailbox server role from a computer, remove the Exchange database files (*.edb) and storage group log files (*.log) from the server.

    Note

    If you reinstall the Mailbox server role on this server, you must first remove the database and log files from the server.

To use the Setup.com command to remove an Exchange 2007 server role

  1. Log on to the server on which you want to remove one or more Exchange 2007 server roles.

  2. Open a Command Prompt window and navigate to the directory where you installed the Exchange Server 2007 files. By default, this directory is %programfiles%\Microsoft\Exchange Server.

  3. Navigate to the \bin directory.

    Note

    %programfiles%\Microsoft\Exchange Server\bin is in your path, so you can run this command from anywhere, without navigating to this directory.

  4. Use the following syntax for Setup.com:

    Setup.com /mode:uninstall /role:<server roles to remove>

    Where <server roles to remove> must be one or more of the following, in a comma-separated list:

    • HubTransport (or HT, or H)

    • ClientAccess (or CA, or C)

    • EdgeTransport (or ET, or E)

    • Mailbox (or MB, or M)

    • UnifiedMessaging (or UM, or U)

    • ManagementTools (or MT, or T)

  5. (Optional) If you are removing the Mailbox server role from a computer, remove the Exchange database files and storage group log files from the server.

    Note

    If you reinstall the Mailbox server role on this server, you must first remove the database and log files from the server.

For More Information

For more information about removing Exchange Server 2007, see Removing and Modifying Exchange 2007.