is included with Office, you can find it in your local installation directory. The exact path depends on your Office version and system architecture: Office 2016 / 2019 / 2021: 64-bit Office: C:\Program Files\Microsoft Office\Office16 32-bit Office (on 64-bit Windows): C:\Program Files (x86)\Microsoft Office\Office16 Office 2013: C:\Program Files (x86)\Microsoft Office\Office15 Office 2010: C:\Program Files (x86)\Microsoft Office\Office14 Common Use Cases and Commands , you must use the cscript.exe
: C:\Program Files (x86)\Microsoft Office\Office16 download ospp.vbs
If you have Office installed, you can find the file in one of the following directories depending on your version and architecture: Microsoft Learn 64-bit Office: C:\Program Files\Microsoft Office\Office16 C:\Program Files\Microsoft Office\root\Office16 32-bit Office (on 64-bit Windows): C:\Program Files (x86)\Microsoft Office\Office16 C:\Program Files (x86)\Microsoft Office\root\Office16 How to use it To run the script, open Command Prompt as an Administrator and navigate to the folder using the command. Common commands include: Check license status: cscript ospp.vbs /dstatus Install a product key: cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Activate Office: cscript ospp.vbs /act Uninstall a product key: cscript ospp.vbs /unpkey:XXXXX (where XXXXX is the last 5 characters of the key found via Important Note is included with Office, you can find it