Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to remove and to reinstall IIS on a computer that is running Exchange Server


View products that this article applies to.

Introduction

This article describes how to remove and to reinstall Microsoft Internet Information Services (IIS) on a computer that is running one of the following versions of Microsoft Exchange Server:
  • Microsoft Exchange 2000 Server
  • Microsoft Exchange Server 2003
  • Microsoft Exchange Server 2007

↑ Back to the top


More information

To remove and to reinstall IIS and Exchange Server, use one of the following methods, as appropriate for the version of Exchange Server that is installed.

Exchange Server 2003 or Exchange 2000 Server

If you have to reinstall IIS on the server that is also running Exchange 2000 Server or Exchange Server 2003, you have to reinstall Exchange Server at the same time. Do this to restore links to IIS that provide Simple Mail Transfer Protocol (SMTP) and Outlook Web Access functionality.

This article describes how to reinstall both IIS and Exchange Server and to preserve the existing Exchange store.

If your issue seems to be with Outlook Web Access, try using the steps in the following Knowledge Base article to remove only the Exchange virtual directories before you remove IIS:
280823 Troubleshooting OWA when the contents frame displays "Loading"
If you run Exchange Server in a clustered environment, click the following article number for more information about how to troubleshoot IIS:
312395 How to fix an uninstalled SMTP service on an Exchange 2000 server in a cluster
To remove and then reinstall IIS and Exchange Server, follow these steps.

Step 1: Back up data

Perform an online backup of the Exchange store, the system state data, and the IIS metabase.

For more information about how to back up and restore the IIS metabase, see the product documentation. To view this documentation, visit the following Microsoft Web site: For more information, click the following article number to view the article in the Microsoft Knowledge Base:
324277 How to create a metabase backup by using IIS 6.0 in Windows Server 2003
For more information about how to back up the Exchange store data, search the Exchange Server Help file for "Back Up Exchange Data." For more information, click the following article number to view the article in the Microsoft Knowledge Base:
258243 How to back up and restore an Exchange computer by using the Windows Backup program
For more information about how to back up the System State data, search the Microsoft Windows 2000 Server Help file for "Back up files to a file or a tape." For more information, click the following article number to view the article in the Microsoft Knowledge Base:
328150 How to perform complete backups of the Windows 2000 Server operating system

Step 2: Dismount the Mailbox store and the Public Folder store

To do this, follow these steps:
  1. In Microsoft Exchange System Manager, double-click the Servers container, double-click the name of the server in which you intend to reinstall the components, and then double-click the correct storage group.
  2. Right-click Mailbox Store (ServerName), and then click Dismount Store.
  3. Right-click Public Folder Store (ServerName), and then click Dismount Store.

Step 3: Stop Exchange services, and then remove IIS

To do this, follow these steps:
  1. Stop the Microsoft Exchange Information Store service. To do this, double-click Services and Applications in Computer Management, click Services, right-click Microsoft Exchange Information Store, and then click Stop.
  2. Start Windows Explorer, and then locate the Program Files\Exchsrvr folder.
  3. Rename the MDBDATA folders on all drives to MDBDATAOLD, and then move them to another location. For example, move them to the C:\ directory.

    Note If you have multiple MDBDATA folders, you must keep track of the original location of each folder.
  4. Remove IIS. To do this, follow these steps:
    1. In Control Panel, double-click Add or Remove Programs.
    2. Click Add or Remove Windows Components.
    3. Click Internet Information Services (IIS).
    4. Click Details.
    5. Click to clear the check boxes for all subcomponents except Common Files, click OK, and then click Next.
    6. Follow the instructions to complete the process.

Step 4: Reinstall IIS, and then reapply the appropriate service packs

Make sure that you have all current security updates and service packs locally available. To view and to download the most current service packs and security updates, visit the following Microsoft Web site: For more information about how to reinstall IIS 5.0, IIS 5.1, and IIS 6.0, click the following article number to view the article in the Microsoft Knowledge Base:
325889 How to remove and reinstall IIS 5.0, 5.1 and 6.0

Step 5: Reinstall Exchange Server

Note To install Exchange Server, you must log on with an account that has Exchange Full Administrator credentials. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
279218 Error message occurs when installing Exchange 2000
To reinstall Exchange Server, follow these steps:
  1. Insert the Exchange Server CD in the CD drive, and then start CD_Drive_Letter:\SETUP\I386\Setup.exe.

    Note If you are running Microsoft Small Business Server 2000 with Exchange Server, follow these steps to reinstall Exchange Server:
    1. Insert Small Business Server Setup Disc 1.
    2. Click Setup SBS, and then wait for the Setup components to load.
    3. Click Next through the initial Setup pages that display company and product information.
    4. Type the administrator password, or click Manually log on, and then click Next.
    5. Click Next through the next three Setup pages.
    6. On the Component Selection page, make sure that the Maintenance check box is selected.
    7. In the Microsoft Exchange version box, click Reinstall.
    8. Click Next through the Setup pages until the installation starts.
    9. Click Finish.
    10. Reapply all Exchange Server service packs and hotfixes, and then go to "Step 6: Restore the original Exchange store."
  2. In the Exchange Server Installation Wizard, click Next.
  3. In the Action column, click reinstall for each installed component, click Next, and then follow the instructions to complete the Installation Wizard.
  4. Reapply all Exchange Server service packs and hotfixes.

Step 6: Restore the original Exchange store

  1. Use the method that is described in "Step 2: Dismount the Mailbox store and the Public Information store" to dismount the Mailbox store and the Public Information store.
  2. In Computer Management, double-click Services and Applications, click Services, right-click Microsoft Exchange Information Store, and then click Stop.
  3. Start Windows Explorer, open the Program Files\Exchsrvr folders, and then rename all the MDBDATA folders on all drives to MDBDATABLANK.
  4. Open the folder in which you put the MDBDATAOLD folder in "Step 3: Stop Exchange services, and then remove IIS," and then rename MDBDATAOLD to MDBDATA.
  5. For each MDBDATAOLD folder, follow these steps:
    1. Rename MDBDATAOLD to MDBDATA.
    2. Move the MDBDATA folder that you just renamed to its original location.
  6. Move all folders that you moved in "Step 3: Stop Exchange services, and then remove IIS" back to their correct Program Files\Exchsrvr folders.
  7. Mount the Mailbox store and the Public Information store. To do this, follow these steps.

    Note If you cannot mount the store when you follow these steps, restart the Microsoft Exchange Information Store service, and then try these steps again.
    1. In Exchange System Manager, double-click the Servers container, double-click the name of the server in which you intend to reinstall the components, and then double-click the correct storage group.
    2. Right-click Mailbox Store (ServerName), and then click Mount Store.
    3. Right-click Public Folder Store (ServerName), and then click Mount Store.
  8. Restart the Microsoft Exchange Information Store service and any other IIS and Exchange services that may be stopped.

Exchange Server 2007

If you have to reinstall IIS on a computer that running Exchange Server 2007, you must also reinstall Exchange 2007. This is to restore links to IIS that provide Outlook Web Access functionality together with other Exchange-related Web services such as the Availability service.

To remove and to reinstall IIS and Exchange Server, follow these steps.

Step 1: Remove IIS

To remove IIS, follow these steps:
  1. In Control Panel, double-click Add or Remove Programs.
  2. Click Add/Remove Windows Components.
  3. Click Application Server, and then click Details.
  4. Click Internet Information Services (IIS), and then click Details.
  5. Click to clear the check boxes for all subcomponents except Common Files, click OK two times, and then click Next.
  6. Follow the instructions to complete the process.

Step 2: Reinstall IIS, and then reapply the appropriate service packs

Note Make sure that you have all current security updates and service packs available locally. To view and to download the most current service packs and security updates, visit the following Microsoft Web site: For more information about how to reinstall IIS 5.0, IIS 5.1, and IIS 6.0, click the following article number to view the article in the Microsoft Knowledge Base:
325889 How to remove and reinstall IIS 5.0, 5.1 and 6.0

Step 3: Remove and then reinstall the Exchange 2007 Client Access Server role

If Exchange 2007 is configured to have only the Client Access Server role, or if Exchange 2007 is configured to have the Client Access Server role together with the Mailbox role, you must remove and then reinstall the Client Access Server role. To do this, follow these steps.
Remove the Client Access Server role
To do this, follow these steps:
  1. In Control Panel, double-click Add or Remove Programs.
  2. Click Microsoft Exchange Server 2007, and then click Remove.
  3. Follow the instructions in the Exchange Server 2007 Setup Wizard. On the Server Role Selection page, click to clear the Client Access Role check box, and then click Next.

    Note Do not click to clear the Management Tools check box on this page.
  4. Follow the remaining steps in the Exchange Server 2007 Setup Wizard to remove the Client Access Server role.
To remove the Client Access Server role at a command prompt, follow these steps:
  1. Click Start, click Run, type cmd, and then click OK.
  2. Use the cd command to change to the following directory:
    drive:\Program Files\Microsoft\Exchange Server\bin
  3. Type the following command, and then press ENTER:
    exsetup.exe /mode:uninstall /roles:ca
Reinstall the Client Access Server role
To do this, follow these steps:
  1. In Control Panel, double-click Add or Remove Programs.
  2. Click Microsoft Exchange Server 2007, and then click Change.
  3. Follow the instructions in the Exchange Server 2007 Setup Wizard. On the Server Role Selection page, click to select the Client Access Role check box, and then click Next.
  4. Follow the remaining steps in the Exchange Server 2007 Setup Wizard to reinstall the Client Access Server role. This action re-creates the links to the virtual server directories in IIS for the Client Access Server role.

    Note This action does not re-create the links to the virtual directories in IIS for other Exchange roles.
To reinstall the Client Access Server role at a command prompt, follow these steps:
  1. Click Start, click Run, type cmd, and then click OK.
  2. Use the cd command to change to the following directory:
    drive:\Program Files\Microsoft\Exchange Server\bin
  3. Type the following command, and then press ENTER:
    exsetup.exe /mode:install /roles:ca

Step 4: Re-create the IIS virtual directories to restore links with the Exchange 2007 Mailbox role

If Exchange is configured to have the Mailbox role, re-create the virtual directories in IIS to restore the links to the Mailbox role.

Important If Exchange is not configured to have the Mailbox role, skip this step.

To re-create the virtual directories in IIS, follow these steps:
  1. Start the Exchange Management Shell.

    To do this, click Start, point to All Programs, point to Microsoft Exchange Server 2007, and then click Exchange Management Shell.
  2. Type the following commands. Press ENTER after you type each command.
    • get-owavirtualdirectory -server server_name -DomainController dc_name | ? {$_.OwaVersion -eq "Exchange2003or2000"} | remove-owavirtualdirectory -DomainController dc_name
    • new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Mailboxes" -DomainController dc_name
    • new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Exadmin" -DomainController dc_name
    • new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "PublicFolders" -DomainController dc_name
    • new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "exchweb" -DomainController dc_name
    Notes
    • Replace server_name with the name of the Exchange 2007 server.
    • Replace dc_name with the name of a domain controller.
    Note Alternatively, you can put these commands into a script file (.ps1) and then run them at the same time.

↑ Back to the top


References

For more information about how to use the Windows 2000 backup utility, click the following article number to view the article in the Microsoft Knowledge Base:
243380 How to use the Windows 2000 Backup utility to perform an online backup

↑ Back to the top


Keywords: KB320202, kbinfo

↑ Back to the top

Article Info
Article ID : 320202
Revision : 16
Created on : 9/10/2011
Published on : 9/10/2011
Exists online : False
Views : 3637