Last active 1741720004

gistfile1.txt Raw
1@echo off
2title Activate Microsoft Office 2019 (ALL versions) for FREE - MSGuides.com
3cls
4echo ===============================================================================
5echo # Project: Activating Microsoft software products for FREE without additional software
6echo ===============================================================================
7echo.
8echo # Supported products:
9echo - Microsoft Office Standard 2019
10echo - Microsoft Office Professional Plus 2019
11echo.
12
13:: Change directory to Office16 folder if ospp.vbs exists
14if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16"
15if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
16
17:: Install licenses
18for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do (
19 cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul
20)
21
22echo.
23echo ===============================================================================
24echo Activating your Office...
25echo ===============================================================================
26
27:: Clear KMS, set port, and unlicense key
28cscript //nologo slmgr.vbs /ckms >nul
29cscript //nologo ospp.vbs /setprt:1688 >nul
30cscript //nologo ospp.vbs /unpkey:6MWKP >nul
31
32set i=1
33cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul || goto notsupported
34
35:skms
36if %i% GTR 10 goto busy
37if %i% EQU 1 set KMS=kms7.MSGuides.com
38if %i% EQU 2 set KMS=107.175.77.7
39if %i% GTR 2 goto ato
40
41cscript //nologo ospp.vbs /sethst:%KMS% >nul
42
43:ato
44echo ===============================================================================
45echo.
46cscript //nologo ospp.vbs /act | find /i "successful" && (
47 echo.
48 echo ===============================================================================
49 echo.
50 echo # My official blog: MSGuides.com
51 echo.
52 echo # How it works: bit.ly/kms-server
53 echo.
54 echo # Please feel free to contact me at msguides.com@gmail.com if you have any questions or concerns.
55 echo.
56 echo # Please consider supporting this project: donate.msguides.com
57 echo # Your support is helping me keep my servers running 24/7!
58 echo.
59 echo ===============================================================================
60 choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit
61) || (
62 echo The connection to my KMS server failed! Trying to connect to another one...
63 echo Please wait...
64 echo.
65 set /a i+=1
66 goto skms
67)
68
69explorer "http://MSGuides.com"
70goto halt
71
72:notsupported
73echo ===============================================================================
74echo.
75echo Sorry, your version is not supported.
76echo.
77goto halt
78
79:busy
80echo ===============================================================================
81echo.
82echo Sorry, the server is busy and can't respond to your request. Please try again.
83echo.
84
85:halt
86pause >nul
87