Microsoft removed direct registry access to full keys in C2R versions. However, you can use a :
(Tip: You can type cscript ospp.vbs / and hit enter to see a list of other secret commands you can run!)
Here is your guide to uncovering the hidden truth behind your Office installation. how to check microsoft office license key using cmd
Now that you are inside the correct folder, you are standing in front of the control panel. The script we need to talk to is called ospp.vbs (Office Software Protection Platform).
| Limitation | Explanation | |------------|-------------| | Full key rarely displayed | Modern Office encrypts product key. | | Admin rights required | CMD must be run as Administrator to access licensing data. | | Volume licensing | KMS clients do not store a unique install key. | | Microsoft 365 Personal/Home | License is tied to Microsoft account – not stored locally as a 25-char key. | Microsoft removed direct registry access to full keys
Although this report focuses on CMD, running PowerShell from CMD gives the most reliable result for modern Office:
While there are paid tools that do this, the most satisfying way to uncover your Microsoft Office license is the "Old School" way: using the Command Prompt. It feels like hacking, but it’s just standard administrative procedure. The script we need to talk to is called ospp
(Note: If you are on an older version of Office, the folder might be Office15 or Office14 . If Office16 gives you an error, try swapping the number.)