Skip to content

Instantly share code, notes, and snippets.

@cntrump
Last active May 10, 2022 11:01
Show Gist options
  • Save cntrump/5ee8518b11802c294efbef027ef73c6b to your computer and use it in GitHub Desktop.
Save cntrump/5ee8518b11802c294efbef027ef73c6b to your computer and use it in GitHub Desktop.
Office 2016 Retail to VOL
@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
@cntrump
Copy link
Author

cntrump commented May 10, 2022

Active with vlmcsd

https://wind4.github.io/vlmcsd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment