Q

Uninstalling and reinstalling Exchange 2003 on Windows 2003

SearchExchange.com expert Bharat Suneja offers step-by-step instructions on how to uninstall Exchange 2003 from a Windows 2003 machine and then reinstall and restore the mailbox data using the /disasterrecovery switch.

I have to uninstall Exchange 2003 on a Windows 2003 machine, and then install it again. But I need to maintain the mailboxes, email, etc. How do I save and restore that information? Do I need to run ForestPrep and DomainPrep again during the reinstallation?
VIEW MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A.

ForestPrep is only required to prepare the forest for Exchange. Likewise, DomainPrep prepares the domain for Exchange.

If your Exchange server is not installed on a domain controller, then you do not need to run either.

If your Exchange server is a domain controller, but it is not the only domain controller in your forest, you will not need to run ForestPrep. Likewise, if it's not the only domain controller in your domain, you will not need to run DomainPrep again. If it is the last domain controller in the domain or in the forest, then you'll need to restore Active Directory first.

To reinstall Windows on the Exchange server:

  1. Back up the stores and the System State.

  2. Copy the folder(s) that holds your Exchange databases and logs -- by default \EXCHSRVR\MDBDATA -- to an alternate location.

  3. Reinstall the operating system and service packs to bring it up to the same level as the previous installation.

Now you can reinstall Microsoft Exchange using the /disasterrecovery switch:

  1. Go to a command prompt window.

  2. Type the path of the Exchange setup executable (if installing from the CD, this is :\setup\i386\setup.exe) followed by "\disasterrecovery."

  3. When you see the component selection window, verify all the components that were installed previously are set to disaster recovery.

If you do not use the /disasterrecovery switch, setup will run in Reinstall mode, which may cause data loss.

This process uses the configuration information stored in Active Directory to rebuild your server.

If your previous Exchange installation had Exchange Server 2003 Service Pack 1, you will also need to apply the Service Pack using the /disasterrecovery switch. Install any Exchange updates that were installed earlier.

Finally, copy the stores you backed up earlier to their original location and mount them.

MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:

I read your answer and I must say it is pretty good. I have a few questions related to this that have probably been asked a million times:

  • Do these steps also apply if you uninstall Exchange from one DC and then install it on a different DC (in an Exchange 2003/Windows 2003 server environment)?

  • Does the /disasterrecovery switch work in the scenario above? Does it restore the system state from backup and move the mailbox stores to the other server?

In my head it seems a bit awkward, but I have not done an uninstall and re-install on a completely different server before.
—Sven K.

******************************************

No, that is not the course of action you would follow to move an Exchange installation from one domain controller to another, nor is it the intended purpose of the /disasterrecovery switch.

These are the recommended steps:

  1. Install Exchange Server on the second or new domain controller.

  2. Move mailboxes to the new Exchange server.

  3. Replicate public folders to the new server. (The pfmigrate.wsf script does a great job of this.)

  4. If the Exchange installation on the first domain controller is the first Exchange server in the administrative group (or the only one), make sure you designate the new server as the site folder server, rehome any connectors, and follow the instructions in Microsoft KBA 822931: How to remove the first Exchange Server 2003 computer from the administrative group.

  5. If the new Exchange server will receive inbound Internet mail, make the necessary firewall changes to make the new server accessible on the Internet. This generally involves creating a Network Address Translation (NAT) rule on the firewall to map the internal IP address of the new server to an external IP address provided by your ISP, and creating an access rule to allow inbound SMTP traffic to that server. Test the firewall changes by telnetting to the SMTP port using the server's external IP address: telnet x.x.x.x 25

  6. Set up external DNS:

    1. Create an A record to map the new server's external fully-qualified domain name (FQDN) to the external IP address. Test the new A record from outside: nslookup servername.yourdomain.com

    2. Create a new MX record with a higher preference value and test: nslookup -type=MX yourdomain.com

    3. You can shut down SMTP service on the old Exchange server, to determine if Internet mailflow works through the new server. This is optional.)

    4. If the above works, switch the priority values in both MX records so the new server has the lowest value.

  7. If the old server provided access to any other services like HTTP/HTTPS (for Outlook Web Access, Exchange ActiveSync, Outlook Mobile Access, RPC over HTTP, etc.), IMAP4 and POP3, then make sure the new server is accessible on those ports from the Internet. This will require creating access rules on your firewall for those ports. In case of HTTPS, you may have to either export the certificate with the private key (if using the same external FQDN) from the old server, and installing it on the new server. Or if using a different FQDN, request and install a new SSL certificate on the new server with the appropriate name.

  8. Shut down Exchange services on the old Exchange server for a day or two.

  9. If all looks good, uninstall Exchange Server from the old Exchange server.

  10. Remove the MX record (and A record, if not required any more) pointing to the old server from the external DNS.
—Bharat Suneja, Server Administration expert

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchExchange.com:

  • Tip: When the lights go out: Exchange disaster recovery
  • Reference Center: Exchange Server backup and recovery
  • This was first published in November 2005

    Dig deeper on Microsoft Exchange Server Backup and Disaster Recovery

    Pro+

    Features

    Enjoy the benefits of Pro+ membership, learn more and join.

    Have a question for an expert?

    Please add a title for your question

    Get answers from a TechTarget expert on whatever's puzzling you.

    You will be able to add details on the next page.

    0 comments

    Oldest 

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    SearchWindowsServer

    SearchEnterpriseDesktop

    SearchCloudComputing

    SearchSQLServer

    Close