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:
- 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.
- Right-click Mailbox Store
(ServerName), and then click
Dismount Store.
- 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:
- 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).
- Click Details.
- Click to clear the check boxes for all subcomponents
except Common Files, click OK, and then
click Next.
- 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:
- 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:
- Insert Small Business Server Setup Disc 1.
- Click Setup SBS, and then wait for the
Setup components to load.
- Click Next through the initial Setup
pages that display company and product information.
- Type the administrator password, or click
Manually log on, and then click
Next.
- Click Next through the next three
Setup pages.
- On the Component Selection page,
make sure that the Maintenance check box is selected.
- In the Microsoft Exchange version box,
click Reinstall.
- Click Next through the Setup pages until the
installation starts.
- Click Finish.
- Reapply all Exchange Server service packs and hotfixes,
and then go to "Step 6: Restore the original Exchange store."
- In the Exchange Server Installation Wizard, click
Next.
- In the Action column, click
reinstall for each installed component, click
Next, and then follow the instructions to complete the Installation Wizard.
- Reapply all Exchange Server service packs and hotfixes.
Step 6: Restore the original Exchange store
- 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.
- In Computer Management, double-click Services and
Applications, click Services, right-click
Microsoft Exchange Information Store, and then click
Stop.
- Start Windows Explorer, open the Program Files\Exchsrvr
folders, and then rename all the MDBDATA folders on all drives to MDBDATABLANK.
- 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.
- For each MDBDATAOLD folder, follow these steps:
- Rename MDBDATAOLD to MDBDATA.
- Move the MDBDATA folder that you just renamed to its
original location.
- Move all folders that you moved in "Step 3: Stop Exchange services, and then remove IIS" back to their correct Program Files\Exchsrvr
folders.
- 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.
- 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.
- Right-click Mailbox Store
(ServerName), and then click Mount
Store.
- Right-click Public Folder Store (ServerName), and then click Mount
Store.
- 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:
- In Control Panel, double-click Add or Remove
Programs.
- Click Add/Remove Windows
Components.
- Click Application Server, and then click Details.
- Click Internet Information Services
(IIS), and then click Details.
- Click to clear the check boxes for all subcomponents
except Common Files, click OK two times, and then
click Next.
- 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:
- In Control Panel, double-click Add or Remove Programs.
- Click Microsoft Exchange Server 2007, and then click Remove.
- 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. - 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:
- Click Start, click Run, type cmd, and then click OK.
- Use the cd command to change to the following directory:
drive:\Program Files\Microsoft\Exchange Server\bin
- 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:
- In Control Panel, double-click Add or Remove Programs.
- Click Microsoft Exchange Server 2007, and then click Change.
- 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.
- 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:
- Click Start, click Run, type cmd, and then click OK.
- Use the cd command to change to the following directory:
drive:\Program Files\Microsoft\Exchange Server\bin
- 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:
- 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. - 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.