I've tried installing Exchange 2010 on Windows Server 2008 R2 (only domain controller and all-in-one system).
I did setup.exe /prepareAD, setup /prepareSchema and it worked fine the first time I did it.
Unfortunately due to problem with Hub Transport installation related to (at least from what I've read) IPv6 being disabled (some say disabling it helped them while some enabling helped them). I did it the proper way by using registry entry to disable IPv6 but it still errored out. So i managed to uninstall everything (renamed some old entries in registry of failed Hub Transport roles and tried to reinstal Exchange after rebooting server.
Unfortunetly running setup /prepareAD now gives an error:
D:>setup /PrepareAd
Welcome to Microsoft Exchange Server 2010 Unattended Setup
By continuing the installation process, you agree to the license terms of
Microsoft Exchange Server 2010. If you don't accept these license terms,
please cancel the installation. To review these license terms, please go to
http://go.microsoft.com/fwlink/?LinkId=150127&clcid=0x409/Press any key to cancel setup…………….
No key presses were detected. Setup will continue.
Preparing Exchange SetupCopying Setup Files ......................... COMPLETED
No server roles will be installed
Performing Microsoft Exchange Server Prerequisite Check
Organization Checks ......................... COMPLETED
Setup is going to prepare the organization for Exchange 2010 by using 'Setup /P
repareAD'. No Exchange 2007 server roles have been detected in this topology. Af
ter this operation, you will not be able to install any Exchange 2007 server rol
es.Configuring Microsoft Exchange Server
Organization Preparation ……………………. FAILED
The following error was generated when "$error.Clear(); buildToBuildUpgrade
-ExsetDataAtom -AtomName OrgLevelCt -DomainController $RoleDomainController" was
run: "An error occurred with error code '2147504140' and message 'The data type
can't be converted to or from a native Active Directory data type.'.".The Exchange Server setup operation did not complete. Visit http://support.micro
soft.com and enter the Error ID to find more information.Exchange Server setup encountered an error.
Unfortunetly if i rerun the setup it complains that it needs setup /prepareAD to be run first.
Basically all that works now is setup /PrepareSchema and setup /PrepareDomain complains that prepareAD wasn't done.
For full information I'm also attaching error I had before I've uninstalled everything and tried again:
Hub Transport Role
FailedError:
The following error was generated when "$error.Clear(); install-ExsetdataAtom -AtomName SharedMachineSettings -DomainController $RoleDomainController" was run: "An error occurred with error code '2147950640' and message 'There is no such object on the server.'.".An error occurred with error code '2147950640' and message 'There is no such object on the server.'.
Best Answer
I've managed to fix this by manually removing every trace of Exchange on this server (not all steps were found at my server but i post them anyway). And kids don't do this at home. This is not supported and may harm your system. I was desperate:
* HKLM\SOFTWARE\Microsoft\Exchange
* HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MSExchange”)
* HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Exchange
* C:\Program Files\Microsoft\Exchange Server
* C:\ExchangeSetupLogs
I also found this link which gives a bit bigger overview: http://msexchangehelp.wordpress.com/2010/02/10/manually-uninstall-last-exchange-2010-server-from-organization/
Anyways it solved the problem that installation went thru but again I am at square one with corrupted installation since Hub Transport failed to install AGAIN. So redoing this steps again... and trying installation again with IPV6 disabled.