Fixing Azure AD Join for Windows 10 Provisioning Package Error 0xCAA2000C
-
Conrad Murray
-
07 June, 2021
We are working with Declaration Software on their Windows 10 Workstation Migration Agent. The Workstation Migration Agent is capable of migrating Computer Accounts from On-Premises AD to Azure AD, AD to AD, and Azure AD to Azure AD. This includes migrating a Workstation where it has been Azure AD Hybrid Joined and instead making it Azure AD Joined directly to the same tenant it was already in.
In addition it will execute runbooks to ensure that any Office 365 Workloads configured on the device will either be gracefully disconnected or when possible, migrated for immediate use. This includes Outlook, OneDrive for Business, Teams and Microsoft EDGE Profiles. Those runbooks can be run as a set of stand-alone utilities to support tenant to tenant migrations.
Nero Blanco are Premium Delivery Partners and can help you with any sort of Workstation Migration in addition to our already burgeoning range of migration capabilities.
During testing we hit this error: LastResult:Error -895352820 (0xCAA2000C)
Install-ProvisioningPackage -PackagePath C:\MigrationAgent\JoinNewDirectory.ppkg IsInstalled : False PackageID : 23d3425d-bcfc-4c75-a631-d87687e61002 PackageName : Migrate to IT Murray PackagePath : C:\MigrationAgent\JoinNewDirectory.ppkg Description : Rank : 0 Altitude : 2000 Version : 1.0 OwnerType : OEM Notes : LastInstallTime : 03/06/2021 05:13:42 Result : 0__Accounts_Azure.provxml Category:DeviceAADJoin LastResult:Error -895352820 (0xCAA2000C) Message:Provisioning failed NumberOfFailures:1 (0x1) 1__OOBE_Desktop_HideOobe.provxml
Category:InitialCustomization
LastResult:Success
Message:OOBE successfully configured.
NumberOfFailures:0 (0x0)
When this was attempted at the GUI for “Add or remove a provisioning package” we saw this error:
Looking in the Azure AD Audi Logs we could see failures for the bulk enrollment package – Microsoft.Online.Workflows.ObjectAlreadyExistsException, but those errors didn’t quite seem accurate especially as they were preceded by a success. (Ultimately they are a bit of a red herring)
What we did know as that we had been doing more advanced testing by making the target tenant more secure. We had activated Conditional Access polices whereby All Users require MFA to consume Microsoft 365 services. This is what caused that issue. To resolve this we crated a Dynamic Security Group with the following Dynamic Membership Rules:
(user.displayName -startsWith "package_") and (user.userPrincipalName -startsWith "package_")We then added that as an exclusion, then our Provisioning Package went through fine.
There was not a lot of information around about LastResult:Error -895352820 (0xCAA2000C) so hopefully this will help some others people out there experiencing the same issue
Conrad Murray
Conrad Murray is a Microsoft Certified IT consultant working in IT for over 20 years specialising in the Messaging arena and in particular Office 365 and previously Microsoft Exchange On-Premises and IBM Domino. Working with like minded colleagues now delivering very large scale complex migrations from Office 365 to Office 365 (tenant to tenant), Lotus Notes and On-Premises Microsoft Exchange to Office 365.
News & Insights
Trusted insights on technology and innovation to power your business growth.
-
03/06/2026
A practical engineering guide to owners, assignment, consent, credentials and ...
Read More
-
19/05/2026
Domain migrations in Microsoft 365 are rarely as simple as shifting email ...
Read More
-
12/05/2026
Over the past 10 to 15 years, Microsoft 365 has fundamentally reshaped how ...
Read More
-
07/05/2026
Yesterday we had an all company meeting and I thought it would be cool to kick ...
Read More
-
07/05/2026
Planning a tenant-to-tenant migration? Talk to us
Read More
-
31/03/2026
In tenant-to-tenant (T2T) and Google-to-Microsoft 365 migration projects, ...
Read More
-
27/03/2026
You’d think this would be easy and not an uncommon request. There are genuine ...
Read More
-
23/03/2026
Managing Google to Microsoft Migration with GAM7 and PowerShell
Read More
-
16/03/2026
When a user leaves an organisation in Microsoft 365, administrators have ...
Read MoreSubscribe to our newsletter for the latest updates and insights.
Like what you see? Stay in touch! Subscribers to our email list are among the first to receive the latest news, views and updates from Nero Blanco