0-1011

Fix Microsoft Office error code 0-1011 on Windows 11

Software – Microsoft Office Intermediate 👁 15 views 📅 May 25, 2026

Error 0-1011 blocks Office activation on Windows 11. The fix is to clear the Office licensng cache and re-register the product key.

Quick answer

Open Command Prompt as administrator, run cd %ProgramFiles%\Microsoft Office\Office16 then cscript ospp.vbs /dstatus. Note the last 5 characters of the product key, then run cscript ospp.vbs /unpkey:XXXXX (replace XXXXX with those 5 chars). Finally run cscript ospp.vbs /act. This clears the corrupt activation token.

What's actually happening here

Error 0-1011 shows up when you try to activate Microsoft Office 2021 or Office 365 on Windows 11 and the activation wizard just spins or throws this error. The message reads something like "Something went wrong and we can't activate this product. Please try again later. Error code 0-1011." But it's not a network problem. What's actually happening is the Office licensing cache — stored in %ProgramData%\Microsoft\OfficeSoftwareProtectionPlatform\ — gets corrupted. This usually happens after a Windows update that partially resets the activation status or when you've swapped hardware (like replacing a motherboard) and the activation token no longer matches the hardware hash. Windows 11's stricter TPM 2.0 requirements can also confuse Office's activation service into thinking the hardware has changed when it hasn't. The error code 0-1011 specifically means "the activation request failed because the licensing store is inconsistent." You can't fix it by re-entering your product key or signing out and back in — the token itself is broken.

Fix steps

  1. Close all Office apps. Outlook, Word, Excel — anything using Office must be shut down. Check Task Manager to be sure.
  2. Open Command Prompt as administrator. Hit Windows key, type cmd, right-click Command Prompt, select "Run as administrator."
  3. Navigate to the Office installation folder. For 64-bit Office on 64-bit Windows, run cd %ProgramFiles%\Microsoft Office\Office16. For 32-bit Office, use cd %ProgramFiles(x86)%\Microsoft Office\Office16. You can check your Office bitness by opening Word, going to File > Account > About Word.
  4. Check your activation status. Run cscript ospp.vbs /dstatus. This lists the installed product key and its license status. Look for a line like Last 5 characters of installed product key: XXXXX. Write down those 5 characters.
  5. Uninstall the product key. Run cscript ospp.vbs /unpkey:XXXXX replacing XXXXX with the 5 characters you noted. You'll see "Product key uninstall successful."
  6. Re-enter your product key. Run cscript ospp.vbs /inpkey:YOUR-PRODUCT-KEY-HERE (use hyphens). If you have a digital license tied to your Microsoft account, skip this step — the key is embedded in the hardware signature.
  7. Force activation. Run cscript ospp.vbs /act. You should see "Product activation successful."
  8. Verify. Run cscript ospp.vbs /dstatus again. The status should now say LICENSED.

Alternative fixes if the main one fails

If the steps above didn't work — maybe the /unpkey command returned an error about a non-existent key — try these in order:

Delete the licensing cache manually

Stop the Office Software Protection service first. Open Command Prompt as admin and run net stop sppsvc. Then delete everything inside C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\ — don't delete the folder itself, just the files inside. Restart the service with net start sppsvc. Then go back to step 3 above and run cscript ospp.vbs /act again.

Re-arm the activation

Sometimes the activation count is stuck. Run cscript ospp.vbs /rearm from the Office16 folder. This resets the activation timer for 30 days and clears any internal corruption. After rearm, close the prompt, reboot, then run the activation steps again.

Repair Office installation

If the cache is clean but activation still fails, Office files might be damaged. Go to Settings > Apps > Installed apps, find Microsoft Office, click the three dots, select Modify > Quick Repair. This doesn't affect your files — it just replaces corrupted .dll files. After repair, try activation again.

Prevention tip

Error 0-1011 tends to come back after major Windows 11 feature updates. Before running a Windows update, disable your antivirus temporarily — some (like McAfee) lock the licensing cache files during the update and corrupt them. Also, ensure you're signed into Office with the same Microsoft account you used to buy the license. If you use a volume license version (like from a company), make sure the KMS host is reachable. I've seen this error on Dell and HP laptops after BIOS updates that reset the TPM — in that case, just re-entering the product key after the fix steps above prevents a recurrence.

Was this solution helpful?