Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harsh1772/4aa117d076a90a7883e6e3099aafb78e to your computer and use it in GitHub Desktop.
Save harsh1772/4aa117d076a90a7883e6e3099aafb78e to your computer and use it in GitHub Desktop.
For More Information
https://msguides.com/office-2019#Method_2_Using_batch_scripts
-----------------------------------------------------------------------
-----------------------------------------------------------------------
open the file location:
cd /c: %ProgramFiles%\Microsoft Office\Office16
-----------------------------------------------------------------------
and run cmd in administration
put the file path cd /c: %ProgramFiles%\Microsoft Office\Office16
-----------------------------------------------------------------------
paste the command line:
for /f %x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
---------------------------------------------------------------------------------------------------------------------------
after this process do not close cmd.
we write additional key for activator.
paste this command:
cscript ospp.vbs /setprt:1688
-----------------------------------------------------------------------
paste this command:
cscript ospp.vbs /unpkey:6MWKP >nul
-----------------------------------------------------------------------
paste this command:
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
-----------------------------------------------------------------------
paste this command:
cscript ospp.vbs /sethst:e8.us.to
-----------------------------------------------------------------------
paste this command:
cscript ospp.vbs /act
-----------------------------------------------------------------------
-----------------------------------------------------------------------
after showing message is:
product activation successful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment