/PrepareAD Stuck at 0%

Last update 05 May 2021

I had an issue upgrading a Microsoft Exchange 2016 to 2019 environment. PrepareAD gets stuck at 0%. From the Exchange setup logs, you will find a similar error below:

preparead stuck_0

03/17/2021 14:25:59.0361] [2]     szOrg:  “” [context value is: “DOMAIN”]

[03/17/2021 14:25:59.0361] [2]     szLegacyOrg:  “” [context value is: “DOMAIN”]

[03/17/2021 14:25:59.0361] [2]     szAdminGroup:  “Exchange Administrative Group (FYDIBOHF23SPDLT)” [context value is: “Exchange Administrative Group (FYDIBOHF23SPDLT)”]

[03/17/2021 14:25:59.0361] [2]     szLegacyAdminGroup:  “Exchange Administrative Group (FYDIBOHF23SPDLT)” [context value is: “Exchange Administrative Group (FYDIBOHF23SPDLT)”]

[03/17/2021 14:25:59.0361] [2]     szAdminGroupContainingRoutingGroup:  “Exchange Administrative Group (FYDIBOHF23SPDLT)” [context value is: “Exchange Administrative Group (FYDIBOHF23SPDLT)”]

[03/17/2021 14:25:59.0361] [2]     szRoutingGroup:  “Exchange Routing Group (DWBGZMFD01QNBJR)” [context value is: “Exchange Routing Group (DWBGZMFD01QNBJR)”]

[03/17/2021 14:25:59.0361] [2] Looking for server object…

[03/17/2021 14:25:59.0377] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:6594)

Error code 0X80072030 (8240): There is no such object on the server.

[03/17/2021 14:25:59.0377] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:7103)

Error code 0X80072030 (8240): There is no such object on the server.

[03/17/2021 14:25:59.0377] [2] s_fUpgradingFromPT is FALSE

[03/17/2021 14:25:59.0377] [2] Entering CAtomOrgLevelCt::ScPreSetup

[03/17/2021 14:25:59.0377] [2] Entering CBaseServiceAtom(Microsoft Exchange Organization-Level Container Object)::ScPreSetup

[03/17/2021 14:25:59.0377] [2] Entering CBaseServiceAtom(Microsoft Exchange Organization-Level Container Object)::ScStopAtomServices

[03/17/2021 14:25:59.0377] [2] Leaving CBaseServiceAtom(Microsoft Exchange Organization-Level Container Object)::ScStopAtomServices

[03/17/2021 14:25:59.0377] [2] Leaving CBaseServiceAtom(Microsoft Exchange Organization-Level Container Object)::ScPreSetup

[03/17/2021 14:25:59.0377] [2] Leaving CAtomOrgLevelCt::ScPreSetup

[03/17/2021 14:25:59.0377] [2] Beginning Reinstall of Microsoft Exchange Organization-Level Container Object sub-component.

[03/17/2021 14:25:59.0377] [2] Entering CAtomOrgLevelCt::ScReinstall

[03/17/2021 14:25:59.0377] [2] Entering CBaseAtom(Microsoft Exchange Organization-Level Container Object)::ScRefreshDSObjects

[03/17/2021 14:25:59.0377] [2] Entering CAtomOrgLevelCt::ScAddDSObjects

[03/17/2021 14:25:59.0439] [2] Creating Active Directory objects for Microsoft Exchange Organization-Level Container Object.

[03/17/2021 14:25:59.0439] [2] Creating Microsoft Exchange container

[03/17/2021 14:25:59.0439] [2] Entering ScCreateExchangeCT

[03/17/2021 14:25:59.0439] [2] Leaving ScCreateExchangeCT

[03/17/2021 14:25:59.0439] [2] Creating Microsoft Exchange organization

[03/17/2021 14:25:59.0439] [2] Entering CAtomOrgLevelCt::ScCreateOrgCT

[03/17/2021 14:25:59.0455] [2] Leaving CAtomOrgLevelCt::ScCreateOrgCT

[03/17/2021 14:25:59.0455] [2] Entering ScHavePermissionToCreateDSObject

[03/17/2021 14:25:59.0455] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0455] [2] Leaving ScHavePermissionToCreateDSObject

[03/17/2021 14:25:59.0455] [2] Configuring administrative rights

[03/17/2021 14:25:59.0455] [2] Entering ScInstallLDIFScript

[03/17/2021 14:25:59.0783] [2] Leaving ScInstallLDIFScript

[03/17/2021 14:25:59.0799] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0799] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0799] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0799] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0799] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)

 Error code 0X8000500D (20493): This property can’t be found in the cache.

[03/17/2021 14:25:59.0830] [2]  Status code check (d:\dbs\sh\e19df\0527_200921_0\cmd\19\sources\dev\admin\src\libs\ds\x_dob.cxx:3370

Error code 0X8000500D (20493): This property can’t be found in the cache.

To fix this issue, you need to update the rightsGuid for both Send-as and Recieve-as.  The GUID can be copied from the below URLs

https://docs.microsoft.com/en-us/windows/win32/adschema/r-receive-as

https://docs.microsoft.com/en-us/windows/win32/adschema/r-send-as

To change the GUID, follow the below steps:

  • Login to the Domain Controller
  • From ADSI Edit, under Select a well known context, select Configuration
ADSI Edit
  • Uncollapse the menu at the left pane, and click on CN=Extended-Rights 
ADSI Edit -Extended rights
  • Scroll down until you find the CN=Send-AS and CN=Recieve-As objects.
  • Double click on the object, navigate to rightsGuid attribute
ADSI Edit Send-AS attribute
  • Copy and past the right GUID for both the Send-As and Recieve-As.
ADSI EditGUID
  • If you have more than one Domain controller, wait for the changes to replicate or you can force replication
  • At this point, the PrepareAD should work.