Active Directory wasn't prepared using hosting mode error when installing Exchange Server 2010 SP1
Original KB number: 2384868
Symptoms
Consider the following scenario:
- You run the
Setup /PrepareAD
cmdlet without thehosting
parameter to install Exchange Server 2010 SP1 from an unattended installation. - You run the
setup.com
cmdlet with thehosting
parameter to install the first Exchange Server 2010 (SP1) server. The installation fails. - You try to install Exchange Server 2010 SP1 in non-hosting mode.
In this scenario, you receive the following error message:
Active Directory wasn't prepared using hosting mode. To install server roles for hosting mode, you need to clean up Active Directory and prepare it again for hosting mode.
Cause
This problem occurs because the PARTNERHOSTEDMODE
registry key that is created at the beginning of the installation is not removed. When the first Exchange Server 2010 SP1 server installation fails, you cannot uninstall the installation. When you try to install the Exchange Server 2010 SP1 server in non-hosting mode, the Exchange Best Practices Analyzer (EXBPA) detects that the PARTNERHOSTEDMODE
registry key is present.
Resolution
Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
To resolve this problem, follow these steps:
- Select Start, and then select Run.
- Type Regedit, and then select OK to start Registry Editor.
- Locate and then select the following subkey in the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\ExchangeServer\V14
- Delete the
PARTNERHOSTEDMODE
registry key. - Install Exchange Server 2010 SP1 in non-hosting mode.
More information
There is another article that also resolves the problem of the Exchange Server 2010 SP1 installation failure. For more information, see You cannot install an Exchange Server 2010 SP1 server from an unattended installation.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for