Microsoft 365 Apps activation error 0xCAA50021
When activating Microsoft 365 apps, you might encounter the following error:
ERROR: 0xCAA50021
Try the following troubleshooting methods to solve the problem.
Note Some of these troubleshooting methods can only be performed by a Microsoft 365 admin. If you aren’t an admin, see How do I find my Microsoft 365 admin?
Reset Microsoft 365 activation state
Run the Microsoft Support and Recovery Assistant (SaRA) to reset the Microsoft 365 activation state.
For manual steps or more information, see Reset Microsoft 365 Apps for enterprise activation state.
Remove Office credentials
- From Start, type credential manager, and then select Credential Manager from the search results.
- Select Windows credentials.
- If there are any credentials for MicrosoftOffice16, select the arrow next to them and then select Remove.
- Close Credential Manager.
- From Start, select Settings (the gear icon) > Accounts > Access work or school.
- If the account you use to sign in to office.com is listed there, but it isn’t the account you use to sign in to Windows, select it, and then select Disconnect.
- Restart the device and try to activate Microsoft 365 again.
Perform a manual recovery
Check BrokerPlugin process
Some antivirus, proxy, or firewall software might block the following plug-in process:
Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
Temporarily disable your antivirus software. Contact your system administrator to find out if you are behind a proxy or firewall that is blocking this process. If so, you will also need to temporarily disable your proxy or firewall connection. If you connect through a Virtual Private Network (VPN), you might need to temporarily disable your VPN also.
If the process isn’t blocked, but you still can’t activate Microsoft 365, delete your BrokerPlugin data and then reinstall it using the following steps:
- Open File Explorer, and put the following location in the address bar:
%LOCALAPPDATA%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker\Accounts
- Press CTRL + A to select all.
- Right-click in the selected files and choose Delete.
- Put the following location in the File Explorer address bar:
%LOCALAPPDATA%\Packages\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\AC\TokenBroker\Accounts
- Select all files and delete them.
- Restart the device.
- Download and run the SaRA package for sign in issues.
For manual troubleshooting for step 7, or for more information, see Fix authentication issues in Office applications when you try to connect to a Microsoft 365 service.
Make sure user licenses are assigned
- In the Microsoft 365 Admin Center, go to the Users > Active users page.
- Select the row of the user that you want to assign a license to.
- In the right pane, select Licenses and Apps.
- Expand the Licenses section, select the boxes for the licenses that you want to assign, then select Save changes.
- If the license is already assigned, uncheck it, select Save changes, then check it again and select Save changes again.
Check if user device registration is enabled in Microsoft Entra ID
- Sign in to the Microsoft 365 Admin Center.
- Select Identity from the Admin centers section of the menu. If Admin centers isn't displayed in the menu, select Show All.
- Expand Identity in the menu of the Microsoft Entra admin center.
- Select Device > All devices, then select Device settings under the Manage section.
- Make sure that Users may join devices to Microsoft Entra ID is set to All.
- Make sure that Users may register their devices with Microsoft Entra ID is set to All.
Leave and rejoin Microsoft Entra ID
- Open a Command Prompt window as an administrator. From Start, type cmd.exe in the search box, right-click Command Prompt in the list, and then select Run as administrator.
- Type the following command, and then press Enter:
dsregcmd /status
- Check if the device is joined to Microsoft Entra ID. For more details, see Troubleshoot devices by using the dsregcmd command.
- If the AzureAdjoined value is YES, continue to step 5. If it’s NO, skip to step 11.
- Type the following command, and then press Enter:
dsregcmd /leave
- Type the command
dsregcmd /status
again and press Enter. - Verify that the AzureAdjoined value is NO.
- Restart the device.
- Open a Command Prompt as administrator, and type the
dsregcmd /status
command again. - If the AzureAdjoined value is YES, try to activate Microsoft 365 Apps again. If it’s NO, continue to the next step.
- Download PsExec.
- Return to the Command Prompt and type the following command:
psexec -i -s cmd.exe
- In the new Command Prompt window that opens, type the following command:
dsregcmd /join
- Type the dsregcmd /status command again, and verify that the AzureAdjoined value is YES.
- Try to activate Microsoft 365 Apps again.
Additional troubleshooting
If the above steps don’t solve the problem, try the steps in the following articles: