How to fix "Unlicensed Product" in Office

A red Unlicensed Product bar in Word or Excel means Office can't find a valid licence for the version that is running. Here is how to find out why and fix it.

Updated December 2026

Why Office says Unlicensed Product

  • Two versions of Office are installed, often a preinstalled Microsoft 365 trial next to the version you bought.
  • The trial or a previous key has expired, and Office still uses it.
  • Office was activated with a volume (KMS) key that can no longer reach its server.
  • The key you entered belongs to a different edition from the one installed.

Fix 1: remove other Office versions

  1. Go to Settings › Apps › Installed apps.
  2. Uninstall every entry named Microsoft 365, Microsoft Office or Office that isn't the version you bought, including language packs of other versions.
  3. Restart the PC, open Word and enter your key under File › Account › Change Product Key.

Fix 2: clear old keys with OSPP

Open Command Prompt as administrator and go to the Office folder (use Program Files (x86) for 32-bit Office). List the installed keys:

cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /dstatus

For every licence that isn't yours, note the last five characters of its key and remove it. Replace XXXXX with those five characters:

cscript ospp.vbs /unpkey:XXXXX

Then install your own key and activate. Replace the Xs with your 25-character key:

cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act

Restart Word and check File › Account. Our guide on checking Office activation explains what each line of /dstatus means.

Still stuck?

Keys mentioned in this guide

Still stuck?Send us a screenshot and your order number on the contact page. If a key we sold you won't activate, we fix it or send a replacement.