0% found this document useful (0 votes)
47 views1 page

Activate Office 2021 KMS Script Guide

This document contains a batch script to activate Microsoft Office using KMS hosting. The script checks for the Office installation location and runs commands to install a license, input a product key, set the KMS host, and activate Office.

Uploaded by

Yonathan Dueñas
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Activate Office 2021 KMS Script Guide

This document contains a batch script to activate Microsoft Office using KMS hosting. The script checks for the Office installation location and runs commands to install a license, input a product key, set the KMS host, and activate Office.

Uploaded by

Yonathan Dueñas
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

if exist "C:\Program Files\Microsoft Office\Office16\ospp.

vbs" cd /d "C:\
Program Files\Microsoft Office\Office16"
if exist "C:\Program Files (x86)\Microsoft Office\Office16\[Link]" cd /d
"C:\Program Files (x86)\Microsoft Office\Office16"
for /f %x in ('dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms') do
cscript [Link] /inslic:"..\root\Licenses16\%x"
cscript [Link] /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
cscript [Link] /sethst:[Link]
cscript [Link] /act
pause

You might also like