以激活Office2016为例

cd C:\Program Files\Microsoft Office\Office16

cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99

cscript ospp.vbs /sethst:http://xykz.f3322.org

cscript ospp.vbs /act

cscript ospp.vbs /dstatus

具体命令详解,参考 wenku.baidu.com/view/b34254a965ce05087632135c.html