Advertisement
TraderKnj

active office

Nov 21st, 2019
476
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 1 0
  1. Note: Activate in only windows 10.
  2. ----
  3.  
  4. mode con:cols=20 lines=1
  5. set k1=ND3VC-DXK2X-DBQY7-26HVP-6JHQD
  6. mode con:cols=150 lines=50
  7. for %a in (4,5,6) do (if exist "%ProgramFiles%\Microsoft Office\Office1%a\ospp.vbs" (cd "%ProgramFiles%\Microsoft Office\Office1%a")
  8. if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%a\ospp.vbs" (cd "%ProgramFiles(x86)%\Microsoft Office\Office1%a")) & cls
  9. cscript ospp.vbs /inpkey:%k1% >nul
  10. for /f "tokens=8" %b in ('cscript ospp.vbs /dinstid ^| findstr /b /c:"Installation ID"') do set IID=%b
  11. curl -X GET "https://webact.truonghuynhit.com/GetCID/?IID=%IID%&retry=0" -H "accept: application/json" >CID.TXT
  12. SET /P STR=<CID.TXT
  13. SET STR=%STR:"= %
  14. FOR /F "TOKENS=11" %B IN ('ECHO %STR%') DO SET CID=%B
  15. cscript ospp.vbs /actcid:%CID% & cscript ospp.vbs /act
  16. echo IID:%IID% >k1.txt & echo CID:%CID% >>k1.txt & cscript ospp.vbs /dstatus >>k1.txt & start k1.txt & exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement