Home > Ask the Microsoft Exchange Experts > Bharat Suneja: Server Administration Questions & Answers > Uninstalling and reinstalling Exchange 2003 on Windows 2003
Ask The Exchange Expert: Questions & Answers
EMAIL THIS

Uninstalling and reinstalling Exchange 2003 on Windows 2003

Bharat Suneja EXPERT RESPONSE FROM: Bharat Suneja

Pose a Question
Other Exchange Categories
Meet all Exchange Experts
Become an Expert for this site


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 04 November 2005
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?

>
EXPERT RESPONSE
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

  • Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Bharat Suneja: Server Administration
    Tools to bulk modify Active Directory users in Exchange Server 2003
    Why can't POP3 clients receive Exchange Server email?
    Is it possible to set up an auto-reply message for Exchange DLs?
    Prevent Exchange users from deleting voice messages from a UM folder
    Tools and methods for disabling IMAP and POP in Exchange Server 2003
    Share and sync calendar data between two Exchange Server sites
    Exchange event sink scripting error when configuring email disclaimer
    Change language settings for out-of-office messages
    Set up FQDN and bridgeheads for POP3 and IMAP4 email
    Share a user's calendar without giving access to the entire mailbox

    Microsoft Exchange Server Backup and Disaster Recovery
    Understanding Exchange Server 2007 backup and disaster recovery
    Five Microsoft Exchange Server backup worst practices
    Third-party Exchange Server 2007 backup and restore tools
    Re-enable Exchange Server 2007 remote streaming backups in SP1
    Managing an Exchange 2007 Cluster Continuous Replication (CCR) setup
    Managing an Exchange 2007 Single Copy Cluster (SCC) setup
    Managing Local Continuous Replication (LCR) in Exchange 2007
    Can I back up Exchange Server with a POP3 hosted email server?
    How to back up and restore Exchange data with recovery storage groups
    An affordable Exchange Server database backup software option for SMBs
    Microsoft Exchange Server Backup and Disaster Recovery Research

    Microsoft Exchange Server 2003
    Why can't I send Exchange email from a BlackBerry 7100i mobile device?
    Tools to bulk modify Active Directory users in Exchange Server 2003
    Tools and methods for disabling IMAP and POP in Exchange Server 2003
    Configure SMTP connection limits in Exchange Server 2003 and SBS
    Setting up email disclaimers and signatures in Exchange Server
    Repairing damaged OWA virtual directories in Exchange Server 2003
    Configure a mobile device to receive POP3 email from Exchange Server
    Customizing an Outlook Web Access 2003 email signature
    Why Exchange ActiveSync fails with NAT firewalls
    Is it time to upgrade users' Windows Mobile devices?
    Microsoft Exchange Server 2003 Research

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts