Microsoft KB Archive/320202

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

Article ID: 320202

Article Last Modified on 11/7/2007

-

APPLIES TO


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

-



This article was previously published under Q320202



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



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 &quot;Loading&quot;

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:

http://technet2.microsoft.com/WindowsServer/en/Library/d6b4b27a-e2c4-4ac8-8fe4-9ca37b7d7bb21033.mspx

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 &quot;Back Up Exchange Data.&quot; 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 &quot;Back up files to a file or a tape.&quot; 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 , and then click Dismount Store.
 * 3) Right-click Public Folder Store , and then click Dismount Store.

Step 3: Stop Exchange services, and then remove IIS
To do this, follow these steps:  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. Start Windows Explorer, and then locate the Program Files\Exchsrvr folder. 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. Remove IIS. To do this, follow these steps:  In Control Panel, double-click Add or Remove Programs. Click Add or Remove Windows Components. Click Internet Information Services (IIS).</li> Click Details.</li> Click to clear the check boxes for all subcomponents except Common Files, click OK, and then click Next.</li> Follow the instructions to complete the process.</li></ol> </li></ol>

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:

http://technet.microsoft.com/en-us/wsus/bb466201.aspx

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: <ol> Insert the Exchange Server CD in the CD drive, and then start :\SETUP\I386\Setup.exe.

Note If you are running Microsoft Small Business Server 2000 with Exchange Server, follow these steps to reinstall Exchange Server: <ol style="list-style-type: lower-alpha;"> Insert Small Business Server Setup Disc 1.</li> Click Setup SBS, and then wait for the Setup components to load.</li> Click Next through the initial Setup pages that display company and product information.</li> Type the administrator password, or click Manually log on, and then click Next.</li> Click Next through the next three Setup pages.</li> On the Component Selection page, make sure that the Maintenance check box is selected.</li> In the Microsoft Exchange  box, click Reinstall.</li> Click Next through the Setup pages until the installation starts.</li> Click Finish.</li> Reapply all Exchange Server service packs and hotfixes, and then go to &quot;Step 6: Restore the original Exchange store.&quot;</li></ol> </li> In the Exchange Server Installation Wizard, click Next.</li> <li>In the Action column, click reinstall for each installed component, click Next, and then follow the instructions to complete the Installation Wizard.</li> <li>Reapply all Exchange Server service packs and hotfixes.</li></ol>

Step 6: Restore the original Exchange store
<ol> <li>Use the method that is described in &quot;Step 2: Dismount the Mailbox store and the Public Information store&quot; to dismount the Mailbox store and the Public Information store.</li> <li>In Computer Management, double-click Services and Applications, click Services, right-click Microsoft Exchange Information Store, and then click Stop.</li> <li>Start Windows Explorer, open the Program Files\Exchsrvr folders, and then rename all the MDBDATA folders on all drives to MDBDATABLANK.</li> <li>Open the folder in which you put the MDBDATAOLD folder in &quot;Step 3: Stop Exchange services, and then remove IIS,&quot; and then rename MDBDATAOLD to MDBDATA.</li> <li>For each MDBDATAOLD folder, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Rename MDBDATAOLD to MDBDATA.</li> <li>Move the MDBDATA folder that you just renamed to its original location.</li></ol> </li> <li>Move all folders that you moved in &quot;Step 3: Stop Exchange services, and then remove IIS&quot; back to their correct Program Files\Exchsrvr folders.</li> <li>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. <ol style="list-style-type: lower-alpha;"> <li>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.</li> <li>Right-click Mailbox Store , and then click Mount Store.</li> <li>Right-click Public Folder Store , and then click Mount Store.</li></ol> </li> <li>Restart the Microsoft Exchange Information Store service and any other IIS and Exchange services that may be stopped.</li></ol>

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:

http://technet.microsoft.com/en-us/wsus/bb466201.aspx

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.
 * 1) 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: <ol> <li>Click Start, click Run, type cmd, and then click OK.</li> <li>Use the cd command to change to the following directory:



</li> <li>Type the following command, and then press ENTER:

exsetup.exe /mode:uninstall /roles:ca

</li></ol>

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: <ol> <li>Click Start, click Run, type cmd, and then click OK.</li> <li>Use the cd command to change to the following directory:



</li> <li>Type the following command, and then press ENTER:

exsetup.exe /mode:install /roles:ca

</li></ol>

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: <ol> <li>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.</li> <li>Type the following commands. Press ENTER after you type each command. <ul> <li> get-owavirtualdirectory -server  -DomainController   | ? {$_.OwaVersion -eq &quot;Exchange2003or2000&quot;} | remove-owavirtualdirectory -DomainController </li> <li> new-OwaVirtualDirectory -OwaVersion &quot;Exchange2003or2000&quot; -VirtualDirectoryType &quot;Mailboxes&quot; -DomainController </li> <li> new-OwaVirtualDirectory -OwaVersion &quot;Exchange2003or2000&quot; -VirtualDirectoryType &quot;Exadmin&quot; -DomainController </li> <li> new-OwaVirtualDirectory -OwaVersion &quot;Exchange2003or2000&quot; -VirtualDirectoryType &quot;PublicFolders&quot; -DomainController </li> <li> new-OwaVirtualDirectory -OwaVersion &quot;Exchange2003or2000&quot; -VirtualDirectoryType &quot;exchweb&quot; -DomainController </li></ul>

Notes <ul> <li>Replace  with the name of the Exchange 2007 server.</li> <li>Replace  with the name of a domain controller.</li></ul>

Note Alternatively, you can put these commands into a script file (.ps1) and then run them at the same time.</li></ol>

<div class="references_section">