Replace or add a new 25-character volume license key. cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Use code with caution.
The script resides locally within your Microsoft Office root installation folders. To find it, open your Windows File Explorer and navigate to the directory that matches your installed version and architecture: For 64-Bit Office on 64-Bit Windows
If you need to remove a product key for any reason, first run cscript ospp.vbs /dstatus to get the last five digits of the installed key, then run: download ospp.vbs
Open your and check the following default paths: For 64-bit Office (or 32-bit Office on 32-bit Windows)
C:\Program Files\Microsoft Office\Office16 Replace or add a new 25-character volume license key
To use the script, you must run it through the (cmd) with administrative privileges.
A legitimate ospp.vbs file is not a virus. However, its behavior can sometimes raise flags with security software. For instance, a malware analysis report from Hybrid Analysis noted that an ospp.vbs file had "Suspicious Indicators," as it is "Able to retrieve Windows Product Key" and contains a reference to the Windows registry key for the Software Protection Platform. This is because the script legitimately needs to interact with core system licensing components to manage Office activation. While not malicious by itself, this behavior is suspicious to some sandboxes and security tools, as it mimics what some malware might do. To find it, open your Windows File Explorer
: Third-party websites offering a download for this script are frequently distributing malware or "cracked" versions designed to bypass licensing.
C:\Program Files\Microsoft Office\Office15 Common Usage Commands