ospp.vbs Command Examples

Install, activate, and manage volume licensed versions of Microsoft Office products. Note: this command may override, deactivate, and/or remove your current volume of licensed Office product versions, so please proceed cautiously. More information: https://learn.microsoft.com/deployoffice/vlactivation/tools-to-manage-volume-activation-of-office.

cscript ospp.vbs /inpkey:{{product_key}}

cscript ospp.vbs /unpkey:{{product_key_digits}}

cscript ospp.vbs /sethst:{{ip|hostname}}

cscript ospp.vbs /setprt:{{port}}

cscript ospp.vbs /act

cscript ospp.vbs /dstatus