Last active
May 10, 2022 11:01
-
-
Save cntrump/5ee8518b11802c294efbef027ef73c6b to your computer and use it in GitHub Desktop.
Office 2016 Retail to VOL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Office2016 Retail to VOL | |
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" | |
cls | |
echo Rearm Office2016 Retail... | |
ospprearm.exe | |
echo Installing KMS licenses... | |
for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul | |
echo Installing MAK licenses... | |
for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul | |
echo Installing KMS key... | |
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 | |
echo. | |
echo Finished. | |
pause >nul | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Active with vlmcsd
https://wind4.github.io/vlmcsd/