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:
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 Setup
Copying 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 Failed
Error: 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.'.