Microsoft 365 Apps activation error 0x80070005

When you try to activate Microsoft 365 apps, you might encounter the following error code:

0x80070005

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?

Update Windows
  1. From Start, type check for updates, and select Check for updates from the search results.
  2. Select Check for updates.
  3. Download and install available updates.
  4. Restart the device and try to activate Microsoft 365 again.

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
  1. From Start, type credential manager, and then select Credential Manager from the search results.
  2. Select Windows credentials.
  3. If there are any credentials for MicrosoftOffice16, select the arrow next to them and then select Remove.
  4. Close Credential Manager.
  5. From Start, select Settings (the gear icon) > Accounts > Access work or school.
  6. 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.
  7. Restart the device and try to activate Microsoft 365 again.

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:

  1. Open File Explorer, and put the following location in the address bar: %LOCALAPPDATA%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker\Accounts
  2. Press CTRL + A to select all.
  3. Right-click in the selected files and choose Delete.
  4. Put the following location in the File Explorer address bar: %LOCALAPPDATA%\Packages\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\AC\TokenBroker\Accounts
  5. Select all files and delete them.
  6. Restart the device.
  7. 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.

Rename tokens.dat file
  1. 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.
  2. Type the following command, and then press Enter: net stop sppsvc
  3. Open File Explorer, and put the following location in the address bar: %SystemDrive%\windows\System32\spp\store\2.0
  4. Right-click the tokens.dat file and select Rename.
  5. Rename the file tokens.old.
  6. Go back to the Command Prompt window, type the following command, and then press Enter: net start sppsvc
  7. Perform an online repair of Office.
  8. Restart the device and try to activate Microsoft 365 again.

Create a new Windows user account
  1. Perform a clean boot of Windows. For instructions, see How to perform a clean boot in Windows.
  2. Create a new user account, and then make that account an administrator. For instructions, see Create a local user or administrator account in Windows.
  3. Sign in to Windows with the new account.
  4. Download and install Office.
  5. Try to activate Microsoft 365 again.

References