Windows • Microsoft Office • Antivirus • Autodesk
OEM · RETAIL · VOLUME · BIND · SUBSCRIPTION
⚡ Instant Digital Delivery
ANYSOFTHUB TECHNOLOGIESANYSOFTHUBTECHNOLOGIES
WishlistCart 0
Microsoft Office 4 min read Updated Dec 2026

How to Remove an Old, Duplicate, or Cracked Microsoft Office Product Key via CMD

Fix "Unlicensed Product" and conflicting trial keys by inspecting and removing old Office keys cleanly with OSPP.VBS before activating your genuine key.

How to Remove an Old, Duplicate, or Cracked Microsoft Office Product Key via CMD

Step 1: List All Installed Office License Keys

Open Command Prompt as Administrator and run the command below. Note the "Last 5 characters of installed product key" for any trial, KMS, or Grace key you want to remove:

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

Step 2: Uninstall the Old Key & Activate Your Genuine Key

Replace XXXXX with the 5-character key shown in Step 1, then open Word and enter your genuine ANYSOFTHUB license key:

Command Prompt / PowerShell
cscript ospp.vbs /unpkey:XXXXX
If your Office is 32-bit on 64-bit Windows, use "C:\Program Files (x86)\Microsoft Office\Office16" instead.