Skip to content

Activation Commands

These commands can be used on command box and the command-line. The commands are not case-sensitive.

batch
ospp params

For example the following is a simple activation command:

batch
ospp /inslicid ProPlus2021Volume /inpkey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /act
CommandInstructionUsage
/clallClear all installed Office licenses and keys./clall
/cllicensesClear all installed Office licenses./cllicenses
/clkeysClear all installed Office product keys./clkeys
/inslicid valueInstall the specified Office licenses./inslicid ProPlus2021Volume or /inslicid ProPlus2021Volume,VisioPro2021Volume
/inpkey valueInstall the specified Office product key./inpkey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
/unpkey valueUninstall the specified Office product key./unpkey XXXXX
/sethst valueSet KMS host./sethst kms.example.com
/setprt valueSet KMS port. Default port: 1688./setprt 1688
/act valueActivate installed Office product keys. Value optional, if not provided then attempts to activate all keys./act or /act <SKU ID>
/actcid valueActivate product with user-provided confirmation ID./actcid <CID>
/dstatusDisplay the Office activation info (only available in command-line)./dstatus
/dinstidDisplay installation ID for offline activation (only available in command-line)./dinstid

MIT Licensed