ospp.vbs
Install, activate, and manage volume licensed versions of Microsoft Office products. tldr-pages
On Windows
Windows
Install, activate, and manage volume licensed versions of Microsoft Office products. Use cscript to run this program in the CLI, or wscript in the GUI. Note: This command may override, deactivate, and/or remove your current volume of licensed Office product versions, so please proceed cautiously.
Install a product key (Note: It replaces the existing key)
cscript ospp.vbs /inpkey:product_keyIdentifyTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag
Uninstall an installed product key with the last five digits of the product key
cscript ospp.vbs /unpkey:product_key_digitsIdentifyTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag
Set a KMS host name
cscript ospp.vbs /sethst:ipIdentify/sSaves the current command-prompt options for the current user. Windows commands reference/eSpecifies the engine that is used to run the script. Windows commands reference/tSpecifies the maximum time the script can run (in seconds). Windows commands reference/hRegisters cscript.exe as the default script host for running scripts. Windows commands reference/sSaves the current command-prompt options for the current user. Windows commands reference/tSpecifies the maximum time the script can run (in seconds). Windows commands referenceTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag
Set a KMS port
cscript ospp.vbs /setprt:portIdentifyTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag
Activate installed Office product keys
cscript ospp.vbs /actIdentifyTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag
Display license information for installed product keys
cscript ospp.vbs /dstatusIdentifyTrips 1 Sigma rule: mediumWSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript by Michael Haag