PrepareAD Failed in Exchange 2013

Homer Sibayan 1 Reputation point
2021-07-15T11:35:00.807+00:00

Hi Expert !

Can someone help us please! just a quick background ww have existing exchange 2010 server and we are intoducing exchange 2013 server in same child domain as exchange 2010 resided.

Take note the following we have adjusted and made changes :

  1. Transfer Schema on the same active direcotry where Exchange 2013 resided - Child domain
  2. Transfer Domain Naming on the same active directory where exchange 2013 resided - Child Domain
  3. Administrator Account is member of the following :
    Enterprise Admins
    Schema Admins
    Organization Management
    Domain Admin
    Administrators
    Exchange Trusted subsystem
  4. Enabled Inheritance and allowed Exchange trusted subsystem - Administrator Account
  5. Administrators Group - Add Exchange Trusted Subsystem

Unfortunately, we unable to resolve the issue on the following changes made above. please see the exchange setup logs error below :

After initiating prepareAD 98% failed on below error:

Microsoft Exchange Server 2013 Cumulative Update 23 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for
installation.

Performing Microsoft Exchange Server Prerequisite Check

Prerequisite Analysis                                     COMPLETED

Setup will prepare the organization for Exchange 2013 by using 'Setup /PrepareA
D'. No Exchange 2007 server roles have been detected in this topology. After thi
s operation, you will not be able to install any Exchange 2007 servers.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms
.exch.setupreadiness.NoE12ServerWarning.aspx

Configuring Microsoft Exchange Server

Organization Preparation                                  FAILED
 The following error was generated when "$error.Clear();
      $createTenantRoot = ($RoleIsDatacenter -or $RoleIsPartnerHosted);
      $createMsoSyncRoot = $RoleIsDatacenter;



      #$RoleDatacenterIsManagementForest is set only in Datacenter deploymen

t; interpret its absense as $false
[bool]$isManagementForest = ($RoleDatacenterIsManagementForest -eq $tr
ue);

      if ($RolePrepareAllDomains)
      {
          initialize-DomainPermissions -AllDomains:$true -CreateTenantRoot:$

createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isMa
nagementForest;
}
elseif ($RoleDomain -ne $null)
{
initialize-DomainPermissions -Domain $RoleDomain -CreateTenantRoot
:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$is
ManagementForest;
}
else
{
initialize-DomainPermissions -CreateTenantRoot:$createTenantRoot -
CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
" was run: "Microsoft.Exchange.Data.Directory.ADOperationException: Acti
ve Directory operation failed on ServerName.ChildDomain.ParentDomain.local. This error is n
ot retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03152612, problem 4003 (INSUFF
_ACCESS_RIGHTS), data 0
---> System.DirectoryServices.Protocols.DirectoryOperationException: The user h
as insufficient access rights.
at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32
messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeOu
t, Boolean exceptionOnTimeOut)
at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryReq
uest request, TimeSpan requestTimeout)
at Microsoft.Exchange.Data.Directory.PooledLdapConnection.SendRequest(Directo
ryRequest request, LdapOperation ldapOperation, Nullable1 clientSideSearchTimeo ut, IActivityScope activityScope, String callerInfo) at Microsoft.Exchange.Data.Directory.ADDataSession.ExecuteModificationRequest (ADObject entry, DirectoryRequest request, ADObjectId originalId, Boolean emptyO bjectSessionOnException, Boolean isSync) --- End of inner exception stack trace --- at Microsoft.Exchange.Data.Directory.ADDataSession.AnalyzeDirectoryError(Pool edLdapConnection connection, DirectoryRequest request, DirectoryException de, In t32 totalRetries, Int32 retriesOnServer) at Microsoft.Exchange.Data.Directory.ADDataSession.ExecuteModificationRequest (ADObject entry, DirectoryRequest request, ADObjectId originalId, Boolean emptyO bjectSessionOnException, Boolean isSync) at Microsoft.Exchange.Data.Directory.ADDataSession.Save(ADObject instanceToSa ve, IEnumerable1 properties, Boolean bypassValidation)
at Microsoft.Exchange.Data.Directory.SystemConfiguration.ADConfigurationSessi
on.Save(ADConfigurationObject instanceToSave)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.CreateMoni
toringMailboxContainer(MesoContainer meso)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.InternalPr
ocessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String fun
cName, Action func, Boolean terminatePipelineIfFailed)".

The Exchange Server setup operation didn't complete. More details can be found
in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

Thanks in Advanced!
Homer

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
511 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Xzsssss 8,861 Reputation points Microsoft Vendor
    2021-07-16T05:10:23.36+00:00

    Hi @Homer Sibayan ,

    Are you running the PS with Admin mode? As the error messages says:

    Microsoft.Exchange.Data.Directory.ADOperationException: Active Directory operation failed on ServerName.ChildDomain.ParentDomain.local. This error is not retriable. Additional information: Access is denied.

    And have you prepared schema first? I'm not quite sure about what "Transfer Schema" means, sorry for this.

    Please try this to update the group policy for your admin groups:

    1. Start - Administrative Tools - Group Policy Management - Expand domain name - Expand Domain Controllers OU - Right Click "Default Domain Policy" - Edit - Expand Policies under Computer Configuration - Expand Windows Settings - Expand Security Settings - Expand Local Policies - User Rights Assignment - Take ownership of files or other objects
    2. Add the administrators groups
    3. Run "Gpupdate /force"

    And also see if this thread could help: https://social.technet.microsoft.com/Forums/en-US/bb9f379f-5d7f-4aa2-a63e-6cba1841cce4/exchange-server-2016-preparead-failing-exchage-2010-hybrid-coexistence?forum=Exch2016SD

    Best regards,
    Lou


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Homer Sibayan 1 Reputation point
    2021-07-16T05:46:45.99+00:00

    Hi ZhengqiLou-MSFT

    Are you running the PS with Admin mode? As the error messages says: Yes We run this as admin.

    Microsoft.Exchange.Data.Directory.ADOperationException: Active Directory operation failed on ServerName.ChildDomain.ParentDomain.local. This error is not retriable. Additional information: Access is denied.

    And have you prepared schema first? I'm not quite sure about what "Transfer Schema" means, sorry for this.

    What i mean is since we have parent and child domain, and our exchange 2013 is to be installed in child domain we must transfer the (FSMO) Schema master role in child domain controller where 2013 is reside. this is requirement before running prepare schema and prepareAD if exchange 2013 is on the child domain.

    Thanks
    Homer


  3. Homer Sibayan 1 Reputation point
    2021-07-19T23:58:20.617+00:00

    Hi ZhengqiLou-MSFT

    May we know what is the roll back plan for this two recommendation incase didn't work?

    Please try this to update the group policy for your admin groups:

    1. Start - Administrative Tools - Group Policy Management - Expand domain name - Expand Domain Controllers OU - Right Click "Default Domain Policy" - Edit - Expand Policies under Computer Configuration - Expand Windows Settings - Expand Security Settings - Expand Local Policies - User Rights Assignment - Take ownership of files or other objects
    2. Add the administrators groups
    3. Run "Gpupdate /force"

    ______________________________________________________________________-

    Use the Delegation of Control Wizard to create a custom task: Open ADUC > right click on your domain name > Delegate Control > Next > Add the user or group > Create a custom task to delegate > The folder, existing objects in this folder.... > Select all three permission and choose Full Control.

    Thanks

    0 comments No comments

  4. Xzsssss 8,861 Reputation points Microsoft Vendor
    2021-07-20T07:08:28+00:00

    Hi @Homer Sibayan ,

    For the first one, you could remove the users added and then run GPupdate /Force:
    116211-image.png

    And the second one, open ADUC > click View > Advanced Features > right click domain.com > Properties > Security > find the added one and remove.

    Hope this could work.

    Best regards,
    Lou


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  5. Homer Sibayan 1 Reputation point
    2021-08-03T07:57:59.707+00:00

    Hi ZhengqiLou-MSFT

    Good Day

    We have performed the Following Troubleshooting steps below however did not resolved the issue.

    1. Start - Administrative Tools - Group Policy Management - Expand domain name - Expand Domain Controllers OU - Right Click "Default Domain Policy" - Edit - Expand Policies under Computer Configuration - Expand Windows Settings - Expand Security Settings - Expand Local Policies - User Rights Assignment - Take ownership of files or other objects
    2. Add the administrators groups
    3. Run "Gpupdate /force"

    __-

    Use the Delegation of Control Wizard to create a custom task: Open ADUC > right click on your domain name > Delegate Control > Next > Add the user or group > Create a custom task to delegate > The folder, existing objects in this folder.... > Select all three permission and choose Full Control.

    Thanks