Remove old Microsoft office product Key or cracked product key via CMD

Part 1: Check the Office License Status

To get started, open the Command Prompt as administrator. Navigate to the Microsoft Office program folder using the cd command. The subfolder varies depending on your Office version:

Office 2016 / 2019 /2021:
cd C:\Program Files\Microsoft Office\Office16
or
cd C:\Program Files (x86)\Microsoft Office\Office16

Note: “Office16” is codename of Office 2016. If you are using Office 2010/2013, replace “Office16” with “Office14” or “Office15”.

Now you can check the license status by running the script called ospp.vbs, which is located in your Office program folder.

cscript ospp.vbs /dstatus

Part 2: Remove Existing Office Product Key

To remove your Office product key, you need to use the /unpkeyswitch, along with the last 5 characters of the product key.

cscript ospp.vbs /unpkey:{last five characters of product key}


Did you find this article useful?