Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Fix Exchange Server 2007 Setup failures using the registry
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Fix Exchange Server 2007 Setup failures using the registry


Brien Posey
02.08.2008
Rating: --- (out of 5)


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


Exchange Server 2007 Setup is known to experience failures for a variety of reasons. To fix this, Microsoft designed Exchange 2007 to detect installation failures, make note of the problem within the registry and reboot from that point the next time it runs. But these registry notations, which are meant to help administrators, can actually create issues and cause Setup to freeze. This tip explains how to edit registry keys to fix Exchange Server 2007 Setup failures.

There are a number of things that can cause Exchange Server 2007 Setup to fail; and most failures cause Setup to become locked. I experienced this when I tried to install an early beta of Exchange Server 2007 Service Pack 1 (SP1) on a lab server. I wasn't able to rerun the SP1 installation, nor could I uninstall Exchange Server 2007.

Because of this issue, Microsoft has designed Exchange Server 2007 Setup to detect a failure, make notations within the registry and then resume from that point of failure the next time it runs. Often, however, these notations can do more harm than good, and actually cause Exchange 2007 Setup to freeze.

One trick to resolve this is to use registry keys to determine what state Exchange Server 2007 is in, and unlock Setup, if needed. Remember, editing the registry can be dangerous, and making a mistake while doing so can destroy Windows and/or your applications. I recommend making a full-system backup before continuing.

To use registry keys to fix an Exchange Server 2007 Setup failure, open the Registry Editor and navigate through the tree to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\v8.0

In Figure 1, you'll see that there are separate folders beneath the v8.0 container for each server role. These folders and their contents offer a great deal of information about the server's current state.

Registry containers for Exchange Server 2007 Figure 1. Registry containers offer details about the state of Exchange Server 2007. (Click to view larger image.)

You might also notice that there is no Unified Messaging container. The absence of a container for a particular server role indicates that the corresponding role hasn't been installed, or that an installation hasn't been attempted.

The most important registry keys within the role-specific containers are the Watermark and Action keys. The presence of these keys means that Setup has failed, and a role is partially configured.

Because these keys are role-specific, they will always appear in the container that corresponds to the role Setup was processing when the failure occurred. The Watermark key tells Setup its point of failure. The Action key tells Setup what action was being performed (install, uninstall, etc.).

Setup uses a watermark within the Action key to denote where to resume the next time it runs. There are several instances in which the presence of these keys can cause Setup to lock, preventing any further action. To unlock Setup, delete both the Action and Watermark keys.

Two other registry keys included within the container are: UnpackedVersion and ConfiguredVersion. The ConfiguredVersion key indicates what version of Exchange Server the role is running. UnpackedVersion denotes which Exchange version you most recently tried to install.

For example, I tried to install the release version of Exchange Server 2007 SP1, but the installation failed during the Mailbox Server role setup.
More on Exchange Server 2007 installation:
Step-by-Step Guide: Test driving Exchange Server 2007

Tutorial: How to uninstall Exchange Server 2007 and individual server roles

Tutorial: A primer on Exchange 2007 server roles

Microsoft Blog: How does Exchange 2007 know to resume a failed setup?

In this situation, the numbers displayed for the ConfiguredVersion and the UnpackedVersion were different. If the installation succeeded, these numbers would have been the same.

When this happened, I attempted to uninstall the role. However, Setup failed because Exchange perceived a version conflict. I fixed this by copying the MSFTE.MSI file from the \Setup\ServerRoles\Mailbox folder of the original installation CD to the server's \Program Files\Microsoft\Exchange Server\Mailbox folder.

I used the file version that was bundled with the original Exchange Server 2007 installation CD, not the version that came with SP1. Once I replaced the file with the required version, I was able to uninstall the role and fix the problem.

About the author: Brien M. Posey, MCSE, is a four-time recipient of Microsoft's Most Valuable Professional Award for his work with Windows Server, Internet Information Server (IIS) and Exchange Server. Brien has served as CIO for a nationwide chain of hospitals and healthcare facilities, and was once a network administrator for Fort Knox. You can visit Brien's personal Web site at www.brienposey.com.

Do you have comments on this tip? Let us know.


Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.




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


RELATED CONTENT
Microsoft Exchange Server 2007
Exchange Server 2007 replication and database transaction basics
Troubleshooting a 64-bit Exchange Server 2007 installation
Can't create Exchange Server 2007 mailboxes on a second subdomain
Troubleshooting why some Microsoft Outlook 2007 email disappears
Automate complex Exchange 2007 Management Shell tasks via scripting
Considerations for virtualizing Exchange 2007 mailbox servers
Create a journal rule in Exchange 2007 to secure journaling mailboxes
Microsoft Exchange Server mailbox recovery using database portability
Plan an Exchange 2007 standby continuous replication (SCR) deployment
How to protect an Exchange journaling mailbox from email spoofing
Microsoft Exchange Server 2007 Research

Exchange Server Deployment and Migration Advice
Keeping the old server name after migrating to Exchange Server 2003
Troubleshooting a 64-bit Exchange Server 2007 installation
Can't create Exchange Server 2007 mailboxes on a second subdomain
How to move Exchange 2000 to new server hardware
Can OWA 5.5 users access email from Exchange Server 2003?
How to virtualize Exchange Server 2003
Migrating mailboxes from Exchange Server 5.5 to Windows SBS 2003
Slipstreaming Microsoft Office 2007 deployments
How to keep a copy of migrated Exchange mailboxes on original server
What is Windows Server 2008's impact on an Exchange 2007 migration?

Exchange Server Administration Tips
Exchange Server 2007 replication and database transaction basics
Microsoft Exchange Server 2003 database recovery methods
Automate complex Exchange 2007 Management Shell tasks via scripting
Considerations for virtualizing Exchange 2007 mailbox servers
Extracting Exchange ActiveSync data from IIS log files
How to virtualize Exchange Server 2003
Microsoft Exchange Server mailbox recovery using database portability
Plan an Exchange 2007 standby continuous replication (SCR) deployment
Set up messaging records management (MRM) in Exchange Server 2007
How Microsoft's new support policy for virtualized Exchange will affect you

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
rehoming  (SearchExchange.com)

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

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
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