First open the command prompt (administrator)
Windows system activation related instructions:
Slmgr.vbs/ipk installation key Slmgr.vbs/ato networking activation Slmgr.vbs/dti Export Installation ID Slmgr.vbs/atp Import activation ID (confirmation ID) Slmgr.vbs/upk Uninstall the secret key Slmgr.vbs/ckms Know the KMS server Slmgr.vbs/skms Set KMS Server Slmgr.vbs/rearm reset activation status Slmgr.vbs/xpr display system activation time Slmgr.vbs/dlv Display activation details Slmgr.vbs/ilc Import Certificate
OFFCIE activation related instructions
if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16" if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16" cscript "ospp.vbs" /dstatus
cd /d C:\Program Files (x86)\Microsoft Office\Office16
Cscript ospp.vbs/act networking activation Cscript ospp.vbs/inpkey: install the secret key Cscript ospp.vbs/unpkey: uninstall secret key Cscript ospp.vbs/insic: import certificate Cscript ospp.vbs/dstatus Display detailed activation information Cscript ospp.vbs/dinstid Export Installation ID Cscript ospp.vbs/actcid: Import activation ID (confirmation ID) Cscript ospp.vbs/rearm Reset Activation Status Cscript ospp.vbs/remhst Know KMS Server Cscript ospp.vbs/sethst: Set KMS server
Examples of common commands:
cscript slmgr.vbs /upk & cscript slmgr.vbs /ckms & cscript slmgr.vbs /rearm
cscript slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX & cscript slmgr.vbs /ato
cscript slmgr.vbs /dti >>%temp%\temp.txt & start %temp%\temp.txt
cscript ospp.vbs /dstatus
cscript ospp.vbs /unpkey:XXXXX & cscript ospp.vbs /remhst cscript ospp.vbs /rearm
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX & cscript ospp.vbs /act
cscript slmgr.vbs /dinstid >>%temp%\temp.txt & start %temp%\temp.txt
Cscript slmgr.vbs/ipk XXXXX - XXXXX - XXXXX - XXXXX - XXXXX - XXXXX&cscript slmgr.vbs/skms kms.loli.beer (KMS server address)&cscript slmgr.vbs/ato
Activate Office with the slmgr activation command of the system
slmgr /ato de52bd50-9564-4adc-8fcb-a345c17f84f9