Announcement

Collapse
No announcement yet.

Exchange 2010 setup /prepare AD fails

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exchange 2010 setup /prepare AD fails

    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/?Link...7&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.'.
    My website with some small projects - http://www.pro-solutions.pl

  • #2
    Re: Exchange 2010 setup /prepare AD fails

    You don't have to prep the domain again.
    It is a domain setting, not a server setting. Therefore unless you have wiped the system, prep is not required.

    Personally I don't even run prep manually. Unless you are in a multiple domain scenario it is not required to be run from the command line. Just run setup.exe and let the GUI do everything for you.

    As for your method of removing Exchange, that isn't supported. The only supported way is to remove Exchange using add/remove programs.

    I would suggest wiping the machine and starting again. You now have a system that is not in correct state and there is no guarantee that the installation will proceed or complete correctly, even if it appears to on the surface.

    Simon.
    --
    Simon Butler
    Exchange MVP

    Blog: http://blog.sembee.co.uk/
    More Exchange Content: http://exchange.sembee.info/
    Exchange Resources List: http://exbpa.com/
    In the UK? Hire me: http://www.sembee.co.uk/

    Sembee is a registered trademark, used here with permission.

    Comment


    • #3
      Re: Exchange 2010 setup /prepare AD fails

      Well Sembee it's what I did. I used Add/Remove to remove all roles. However when i tried to remove Hub Transport it was complaining about being in version 0.0 while some other is required and i couldn't uninstall it. Basically my thought was since Hub Transport failed on install it probably just created entries in Registry (sine Hub Tranport Role had only Watermark in it and Some mark that it was Install or Uninstall. And that's it. All I did was rename Hub Transport to Hub Transport Role and Add/Remove started working again.

      I can't wipe machine clean, it's in use, people work on it every day. This problem has to be solved

      The error I was getting on uninstall was more or less this:

      Hub Transport Role
      Failed
      Failed

      Error:
      Error:
      The execution of: "$error.Clear(); set-ExchangeServerRole -Identity $RoleFqdnOrName -IsHubTransportServer:$true -DomainController $RoleDomainController", generated the following error: "Property IsHubTransportServer can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later. The object's current version is 0.0 (6.5.6500.0).".
      The execution of: "$ error.Clear (); set-ExchangeServerRole-Identity $ RoleFqdnOrName-IsHubTransportServer: $ true-DomainController $ RoleDomainController", generated the following error: "Property IsHubTransportServer can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later. The object's current version is 0.0 (6.5.6500.0). ".

      Property IsHubTransportServer can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later.
      Property IsHubTransportServer can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later.
      The object's current version is 0.0 (6.5.6500.0).
      The object's current version is 0.0 (6.5.6500.0).
      My website with some small projects - http://www.pro-solutions.pl

      Comment


      • #4
        Re: Exchange 2010 setup /prepare AD fails

        See attached file for GUI error. I am kinda stuck between GUI and command line problem with setup /prepareAD.

        Also in AD i can see Microsoft Exchange Security Groups being in there but it's empty. Not sure if that should be like that.

        I also have added screenshot for AdsiEdit which shows under services that it created Microsoft Exchange but it's kinda empty (and it always looked like that even when installation was partially done (or i should say was in that inconsistent state)).
        Attached Files
        Last edited by MadBoy; 1st June 2010, 12:51.
        My website with some small projects - http://www.pro-solutions.pl

        Comment


        • #5
          Re: Exchange 2010 setup /prepare AD fails

          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:

          1. Run setup /m:uninstall
          2. Stop and disable all the Exchange 2007 services
          3. Use Registry Editor (Start->Run->Regedit) to remove these Exchange related registry keys:
          * HKLM\SOFTWARE\Microsoft\Exchange
          * HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MSExchange”)
          * HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\Microsoft Exchange
          4. Remove the entire Web Server role (don’t forget to reinstall afterwards as it’s a prerequisite for E2K7!)
          5. Remove the Exchange 2007 server from Active Directory. I ended up deleting the entire “Microsoft Exchange” branch from ADSIEdit (Configuration Container > Services > Microsoft Exchange) as my Org only counts one server.
          6. Use Windows Explorer to delete:
          * C:\Program Files\Microsoft\Exchange Server
          * C:\ExchangeSetupLogs
          7. Use Windows Installer CleanUp Utility to remove all the exchange related info from the installer database.
          8. Remove the security groups created by Exchange setup from AD
          9. Use CC Cleaner to remove registry entries for Exchange

          I also found this link which gives a bit bigger overview: http://msexchangehelp.wordpress.com/...-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.
          Last edited by MadBoy; 1st June 2010, 22:33.
          My website with some small projects - http://www.pro-solutions.pl

          Comment


          • #6
            Exchange 2010 fails to install Hub Transport Role

            I've tried installing Exchange 2010 on Windows 2k8 R2. Following error occurred when installing Hub Transport Role.
            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.'
            I have tried installation with both IPV6 turned on and off. Both failed and both required me to do some magic (manually uninstalling some components) to uninstall Exchange, and try installation again.
            Feel free to shoot your ideas what can be done to resolve the error. In the end If everything fails I will install HyperV and put Exchange 2010 on different server but that's not what the server owner wanted.
            My website with some small projects - http://www.pro-solutions.pl

            Comment


            • #7
              Re: Exchange 2010 setup /prepare AD fails

              I have merged your separate question back in to this main thread as it contains the history.
              Otherwise all that is going to be suggested is the same thing - wipe the machine.

              Your previous attempts to remove the hub transport role have now left the machine in an unsupported scenario. If the system is in production use, then why are you installing Exchange on to it? Why aren't you installing Exchange on to a separate system, which is best practise. You haven't said how many users are involved, but a single system is rarely good for a single system for more than about 10 users.

              If the machine has a lot of resources then I would be seriously considering P2V it, and then separate Exchange out. However there is no guarantee that Exchange will install on a separate machine because there are dregs of the aborted installation still on the system.
              Exchange is very tightly integrated in to AD, and as such if you don't remove it correctly then it will cause problems domain wide.

              The only method that might work is to attempt to reinstall using the recoverserver switch from the command line, then when that is completed remove the product again and start fresh.

              While this may seem rather over the top, there is a good chance that you have damaged the domain and Exchange will not reinstall correctly on either this or any other system in the domain, requiring a complete clean out of Exchange from the domain, which should only be done with the guidance of Microsoft support.

              Simon.
              --
              Simon Butler
              Exchange MVP

              Blog: http://blog.sembee.co.uk/
              More Exchange Content: http://exchange.sembee.info/
              Exchange Resources List: http://exbpa.com/
              In the UK? Hire me: http://www.sembee.co.uk/

              Sembee is a registered trademark, used here with permission.

              Comment


              • #8
                Re: Exchange 2010 setup /prepare AD fails

                Hello Sembee,

                Actually the machine is used for 5-6 people and so will be Exchange. I understand that in perfect scenario it should be installed on different server or virtualized (system supports it since it has 32gb ram and 2 xeon's also Enterprise R2 so it's perfect for that and should be done that way) but that's not what client is paying for. Implementing all changes you mention would cost him more and we will propose it to him but until then I have to do what I am payed for since he needs mails asap.

                Back to the problem. You said that setup /prepareAD and alike are unnesecary but actually when i rerun all steps from: http://technet.microsoft.com/en-us/l.../bb125224.aspx
                a) setup /pl (even thou it's not necessary)
                b) setup /ps
                c) setup /prepareAD /OrganizationName:"First Organization"
                d) setup /prepareDomain (also not necessary)

                and run installation again and ... all roles installed successfully.

                So actually the GUI part of installation which is supposed to prepareAD is crippling installation and not always doing what it's supposed.

                Hopes this little thread will help people solve problems with Exchange 2010 installation.
                My website with some small projects - http://www.pro-solutions.pl

                Comment


                • #9
                  Re: Exchange 2010 setup /prepare AD fails

                  I standby what I said above.
                  I have carried out numerous Exchange 2010 installations on single server/single domain deployments and not once I have had to use the command line.

                  If the server is only used by 5 or 6 people, then SBS 2008 would have been a better choice. More cost effective and a lot easier to setup and manage. Full product for such a small number of users is rarely a good idea.

                  Simon.
                  --
                  Simon Butler
                  Exchange MVP

                  Blog: http://blog.sembee.co.uk/
                  More Exchange Content: http://exchange.sembee.info/
                  Exchange Resources List: http://exbpa.com/
                  In the UK? Hire me: http://www.sembee.co.uk/

                  Sembee is a registered trademark, used here with permission.

                  Comment


                  • #10
                    Re: Exchange 2010 setup /prepare AD fails

                    Originally posted by Sembee View Post
                    Otherwise all that is going to be suggested is the same thing - wipe the machine.
                    I agree. You will have no problems after that... Never trust setup if it fails once

                    Comment


                    • #11
                      Re: Exchange 2010 setup /prepare AD fails

                      Wiping machine is only good in situation where you can do that. I would also have to wipe AD machine as the setup makes changes to AD and it was AD which was causing troubles.

                      I agree that most of the time you can have perfect installation conditions and everything goes smoothly. In case of not so perfect conditions you gotta improvise and be open for everything that may come to you, even when it would be less work to actually wipe machine clean and start over.

                      If the conditions would be perfect all the time there wouldn't be so many threads with errors all around internet

                      Anyway thanks for your help Sembee, I appreciate you taking time to reply. Hope this thread will help people with similar problems like mine, especially useful is manual uninstallation of Exchange which can always come to rescue even if it's not supported method.
                      My website with some small projects - http://www.pro-solutions.pl

                      Comment

                      Working...
                      X