0% found this document useful (0 votes)
33 views2 pages

Activating Office 2019 via KMS Server

This document contains a batch script to activate Microsoft Office 2019. It checks for the Office installation directory and copies the product key files. It then connects to a KMS server to activate Office and checks that activation was successful. If activation fails, it tries connecting to another KMS server.

Uploaded by

Jihane ET-taqy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Activating Office 2019 via KMS Server

This document contains a batch script to activate Microsoft Office 2019. It checks for the Office installation directory and copies the product key files. It then connects to a KMS server to activate Office and checks that activation was successful. If activation fails, it tries connecting to another KMS server.

Uploaded by

Jihane ET-taqy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

@echo off

title Activate Microsoft Office 2019 !


cls
echo ============================================================================
echo #Project: Activating Microsoft software products
echo ============================================================================
echo.
echo #Supported products:
echo - Microsoft Office Standard 2019
echo - Microsoft Office Professional Plus 2019
echo.
echo.
(if exist "%ProgramFiles%\Microsoft Office\Office16\[Link]" cd /d "%ProgramFiles%\Microsoft
Office\Office16")
(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\[Link]" cd /d "%ProgramFiles(x86)%\Microsoft
Office\Office16")
(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript [Link]
/inslic:"..\root\Licenses16\%%x" >nul)
(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript [Link]
/inslic:"..\root\Licenses16\%%x" >nul)
echo.
echo ============================================================================
echo Activating your Office...
cscript //nologo [Link] /ckms >nul
cscript //nologo [Link] /setprt:1688 >nul
cscript //nologo [Link] /unpkey:6MWKP >nul
cscript //nologo [Link] /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul
set i=1
:server
if %i%==1 set KMS_Sev=[Link]
if %i%==2 set KMS_Sev=[Link]
if %i%==3 set KMS_Sev=[Link]
if %i%==4 goto notsupported
cscript //nologo [Link] /sethst:%KMS_Sev% >nul
echo ============================================================================
echo.
echo.
cscript //nologo [Link] /act | find /i "successful"

(echo.
echo ============================================================================
echo #Please feel free to contact me at mail2ehsanalem@[Link] if you have any questions or concerns.
echo ============================================================================
choice /n /c YN /m "Would you like to visit my blog [Y,N]?"
if errorlevel 2 exit) || (echo The connection to my KMS server failed! Trying to connect to another one...
echo Please wait...
echo.
echo.
set /a i+=1
goto server)
explorer "[Link]
goto halt
:notsupported
echo.
echo ============================================================================
echo Sorry! Your version is not supported.
echo.
:halt
pause >nul

You might also like