0x80070005

Office Activation Error 0x80070005: Fix in 3 Steps

Software – Microsoft Office Intermediate 👁 1 views 📅 May 26, 2026

Office activation hits error 0x80070005 when permissions get tangled. I'll walk you through clearing that registry lock and getting back to work.

Why You're Seeing This Error

Error 0x80070005 pops up when Office tries to activate but can't write to a registry key. It's an access denied problem—Office's license service doesn't have permission to update the activation data. You'll usually see this after a Windows update, a permissions reset, or if you recently uninstalled another Office version. I've seen it on Windows 10 22H2 and Windows 11 23H2 with Office 365 and Office 2021.

The good news: you don't need to reinstall Office. The fix is in the registry. Let's go step by step.

Step 1: Run Office Activation Troubleshooter (30 seconds)

This is the easiest check. Microsoft built a tool that resets activation state. It doesn't always work, but it's fast.

  1. Close all Office apps (Word, Excel, Outlook).
  2. Download the Microsoft Support and Recovery Assistant: aka.ms/SaRA-OfficeActivation.
  3. Run it and select Office > I'm having trouble activating Office.
  4. Follow the prompts. It'll fix common activation issues automatically.

If the troubleshooter says "Fixed" but you still get the error, move to Step 2. I've had users swear by this tool—but for 0x80070005, it's hit or miss.

Step 2: Reset Office Activation License via Command Line (5 minutes)

This clears the cached license tokens that might be corrupted. You need admin rights.

  1. Press Windows Key + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Type or paste this command and hit Enter:
cd /d "%ProgramFiles%\Microsoft Office\Office16"

Note: If you have Office 2019 or 2021, the folder is still Office16. If you're on a 32-bit Office on 64-bit Windows, use %ProgramFiles(x86)% instead.

  1. Now run:
cscript ospp.vbs /dstatus

This shows your current license status. Look for the Last 5 characters of the product key—write it down.

  1. Uninstall the key:
cscript ospp.vbs /unpkey:<last5characters>

Replace <last5characters> with the key you noted.

  1. Reinstall the key (you'll need your product key):
cscript ospp.vbs /inpkey:<your-full-product-key>
  1. Activate:
cscript ospp.vbs /act

If it says Product activation successful, you're done. If you see Error: 0x80070005 again, it's a registry permission issue. Go to Step 3.

Step 3: Fix Registry Permissions (15+ minutes)

This is the real fix for 0x80070005. The error means Office's license service can't write to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\Licensing.

Warning: Editing the registry can break things if you're not careful. Stick to the steps exactly.

  1. Press Windows Key + R, type regedit, and press Enter.
  2. Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\Licensing
  1. Right-click the Licensing folder (key) and select Permissions.
  2. Click Advanced.
  3. Next to Owner, click Change.
  4. Type SYSTEM and click Check Names > OK.
  5. Check Replace owner on subcontainers and objects and click Apply.
  6. Now go back to the Permissions tab. Click Add.
  7. Click Select a principal, type SYSTEM, click Check Names > OK.
  8. Under Basic permissions, check Full Control and Read. Click OK.
  9. Repeat steps 8-10 for Administrators (your admin group) and Users (just give Read).
  10. Click OK to close all dialogs.

Now try activating again from Step 2, starting at the /act command. It should work.

Still Stuck?

If the error persists, something else is blocking Office. Check your antivirus—temporarily disable it and retry activation. Also, make sure Windows is fully updated (Settings > Update & Security > Windows Update).

I've seen this error after a bad Windows patch (KB5034122 on Windows 11, for example). Uninstalling that patch fixed it for one user.

That's it. No lengthy reinstall, no Microsoft support call. You're back in business.

Was this solution helpful?