How to Completely Remove Exchange 2007 From a Server

Embed Size (px)

Citation preview

  • 7/30/2019 How to Completely Remove Exchange 2007 From a Server

    1/5

    1

    How to Completely Remove Exchange 2007 from a Server

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

    SP1, Exchange Server 2007

    Topic Last Modified: 2007-12-17

    This topic describes how to use the Exchange Server 2007 Setup wizard or the Setup.comcommand to completely remove Microsoft Exchange Server 2007 from a server that isrunning Windows Server 2003 or Windows Server 2008.

    Completely removing Exchange 2007 from a server includes removing all server roles, allinstallation files, and the Exchange server object and all its child objects from theActive Directory directory service.

    For instructions about how to remove only server roles from a server, seeHow to Remove

    Exchange 2007 Server Roles. For instructions about how to remove an Exchange 2007organization, seeHow 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 roleFor more information about permissions, delegating roles, and the rights that are requiredto administer Exchange Server 2007, seePermission Considerations.

    Also, if the server from which you are removing Exchange has the Mailbox server role

    installed, make sure you have either deleted, disabled, or moved all mailboxes, publicfolders, and public folder replicas to another Mailbox server. If you remove the public folderdatabase, make sure that you complete all the steps to move the data and remove the

    database. Depending on the size of the database, this could take a significant amount of

    time. For instructions about how to remove a public folder database, seeHow to Remove aPublic Folder Database.

    If you have installed any Update Rollups for Exchange 2007, you must use either Add orRemove 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 theUpdate Rollups and you use Setup.com from the bin folder, the following error message willbe displayed: The is a version mismatch between the running application and the

    installed application.

    ProcedureExchange 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 thatare specific to Windows Server 2003.

    To use the Exchange Server 2007 Setup wizard to remove Exchange 20071. Log on to the server from which you want to remove Exchange 2007.2. Open Control Panel, and then click Add or Remove Programs.

    http://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998313(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998313(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998313(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa996881(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa996881(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa996881(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998329(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa996881(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/aa998313(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspx
  • 7/30/2019 How to Completely Remove Exchange 2007 From a Server

    2/5

    2

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

    Note:

    If you click Change instead ofRemove, you can add server roles, but you cannotremove server roles.

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

    5. On the Server Role Selection page, clear all the server role check boxes, clear theManagement Tools check box, 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 Exchange from a Mailbox server, remove the

    Exchange database files (*.edb) and storage group log files (*.log).

    Note:

    If you reinstall the Mailbox server role on this server, you must first remove the

    database and log files from the server.

    9. (Optional) Remove the setup log files that arelocated at%systemdrive%\ExchangeSetupLogs.

    10.(Optional) Remove the following virtual servers that are created for Exchange 2007under the Default Web Site in Internet Information Services (IIS):

    Microsoft-Server-ActiveSync OAB Owa

    When you remove Exchange 2007, neither IIS nor these virtual servers are removed.

    To use the Setup.com command to remove Exchange 20071. Log on to the server from which you want to remove Exchange 2007.

  • 7/30/2019 How to Completely Remove Exchange 2007 From a Server

    3/5

    3

    2. Open a Command Prompt window and navigate to the directory where you installedthe 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

    5. (Optional) If you are removing the Mailbox server role from a computer, remove theExchange 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.

    6. (Optional) Remove the setup log files that are located at%systemdrive%\ExchangeSetupLogs.

    7.

    (Optional) Remove the following virtual servers that are created for Exchange 2007under the Default Web Site in IIS:

    Microsoft-Server-ActiveSync OAB Owa

    When you remove Exchange 2007, neither IIS nor these virtual servers are removed.

    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 WindowsServer 2008, seeTerminology Changes.

    To use the Exchange Server SP1 2007 Setup wizard to remove Exchange 2007

    http://technet.microsoft.com/en-us/library/bb123550(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb123550(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb123550(EXCHG.80).aspxhttp://technet.microsoft.com/en-us/library/bb123550(EXCHG.80).aspx
  • 7/30/2019 How to Completely Remove Exchange 2007 From a Server

    4/5

    4

    1. Log on to the server from which you want to remove Exchange 2007.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 ofUninstall, you can add server roles, but you cannot

    remove server roles.

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

    5. On the Server Role Selection page, clear all the server role check boxes, clear theManagement Tools check box, 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 Exchange from a Mailbox server, remove the

    Exchange database files (*.edb) and storage group log files (*.log).

    Note:

    If you reinstall the Mailbox server role on this server, you must first remove the

    database and log files from the server.

    9. (Optional) Remove the setup log files that are located at%systemdrive%\ExchangeSetupLogs.

    10.(Optional) Remove the following virtual servers that are created for Exchange 2007under the Default Web Site in IIS:

    Microsoft-Server-ActiveSync OAB Owa

  • 7/30/2019 How to Completely Remove Exchange 2007 From a Server

    5/5

    5

    When you remove Exchange 2007, neither IIS nor these virtual servers are removed.

    To use the Setup.com command to remove Exchange 20071. Log on to the server from which you want to remove Exchange 2007.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

    5. (Optional) If you are removing the Mailbox server role from a computer, remove theExchange 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.

    6. (Optional) Remove the setup log files that are located at%systemdrive%\ExchangeSetupLogs.

    7. (Optional) Remove the following virtual servers that are created for Exchange 2007under the Default Web Site in IIS:

    Microsoft-Server-ActiveSync OAB

    OwaWhen you remove Exchange 2007, neither IIS nor these virtual servers are removed