By MCAKey Technical Team
Need to move your Office license to a new PC, or troubleshoot an activation issue? Removing the license key from your current machine is the first step. It sounds technical but takes under 2 minutes with the right commands.
Here’s exactly how to do it — works for Office 2016, 2019, 2021, and 2024.
When You’d Need to Remove an Office License Key
- Switching to a new PC — free up the license before installing on new hardware
- Activation errors — a corrupt license entry can block reactivation
- Upgrading Office edition — clean removal before installing a new key
- Selling or resetting a PC — remove your key before handing it off
How to Remove an Office License Key
Step 1: Open Command Prompt as Administrator
Press Win + R, type cmd, press Enter. Then right-click Command Prompt and select Run as administrator.
Step 2: Navigate to the Office Installation Folder
For 64-bit Office (most common on modern Windows):
cd "C:Program FilesMicrosoft OfficeOffice16" For 32-bit Office on a 64-bit system:
cd "C:Program Files (x86)Microsoft OfficeOffice16" ⚠️ Replace
Office16withOffice15for Office 2013, orOffice14for Office 2010. Not sure which? Check C:Program FilesMicrosoft Office in File Explorer.
Step 3: Find Your Installed License Key
Run this to see all installed Office licenses and their last 5 characters:
cscript ospp.vbs /dstatus Look for the line showing Last 5 characters of installed product key. Note those 5 characters — you’ll need them next.
Step 4: Remove the License Key
Replace XXXXX with the 5 characters you just noted:
cscript ospp.vbs /unpkey:XXXXX You should see: Uninstalling product key for… product key uninstall successful.
Step 5: Verify the Key is Gone
Run the status check again to confirm:
cscript ospp.vbs /dstatus If it returns “No installed product keys detected” — you’re done. The license is fully removed.
Step 6 (Optional): Install a New Key
If you’re replacing the key rather than just removing it, install the new one:
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Then activate immediately:
cscript ospp.vbs /act Need a genuine Office license? MCAKey has Office 2024, 2021, and 2019 keys with instant delivery.
🎟️ Special Offer: Use code FIXIT10 at checkout on mcakey.com/shop for 10% off your next purchase. Limited time.
Conclusion
Five commands. Under 2 minutes. Whether you’re moving licenses, troubleshooting, or upgrading — this is the clean way to do it without touching the registry or reinstalling Office.
Need help? Contact MCAKey support — we respond within a few hours.

