Last active 1741720004

ruwanego revised this gist 1741720004. Go to revision

1 file changed, 86 insertions

gistfile1.txt(file created)

@@ -0,0 +1,86 @@
1 + @echo off
2 + title Activate Microsoft Office 2019 (ALL versions) for FREE - MSGuides.com
3 + cls
4 + echo ===============================================================================
5 + echo # Project: Activating Microsoft software products for FREE without additional software
6 + echo ===============================================================================
7 + echo.
8 + echo # Supported products:
9 + echo - Microsoft Office Standard 2019
10 + echo - Microsoft Office Professional Plus 2019
11 + echo.
12 +
13 + :: Change directory to Office16 folder if ospp.vbs exists
14 + if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16"
15 + if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
16 +
17 + :: Install licenses
18 + for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do (
19 + cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul
20 + )
21 +
22 + echo.
23 + echo ===============================================================================
24 + echo Activating your Office...
25 + echo ===============================================================================
26 +
27 + :: Clear KMS, set port, and unlicense key
28 + cscript //nologo slmgr.vbs /ckms >nul
29 + cscript //nologo ospp.vbs /setprt:1688 >nul
30 + cscript //nologo ospp.vbs /unpkey:6MWKP >nul
31 +
32 + set i=1
33 + cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul || goto notsupported
34 +
35 + :skms
36 + if %i% GTR 10 goto busy
37 + if %i% EQU 1 set KMS=kms7.MSGuides.com
38 + if %i% EQU 2 set KMS=107.175.77.7
39 + if %i% GTR 2 goto ato
40 +
41 + cscript //nologo ospp.vbs /sethst:%KMS% >nul
42 +
43 + :ato
44 + echo ===============================================================================
45 + echo.
46 + cscript //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 +
69 + explorer "http://MSGuides.com"
70 + goto halt
71 +
72 + :notsupported
73 + echo ===============================================================================
74 + echo.
75 + echo Sorry, your version is not supported.
76 + echo.
77 + goto halt
78 +
79 + :busy
80 + echo ===============================================================================
81 + echo.
82 + echo Sorry, the server is busy and can't respond to your request. Please try again.
83 + echo.
84 +
85 + :halt
86 + pause >nul
Newer Older