Skip to content

Instantly share code, notes, and snippets.

@mndambuki
Created June 7, 2020 03:41
Show Gist options
  • Save mndambuki/bf3b6a1de33dd84dc4f59dcf8e111618 to your computer and use it in GitHub Desktop.
Save mndambuki/bf3b6a1de33dd84dc4f59dcf8e111618 to your computer and use it in GitHub Desktop.
Activate Microsoft Office 2019
@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\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")
(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")
(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
echo.
echo ============================================================================
echo Activating your Office...
cscript //nologo slmgr.vbs /ckms >nul
cscript //nologo ospp.vbs /setprt:1688 >nul
cscript //nologo ospp.vbs /unpkey:6MWKP >nul
cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul
set i=1
:server
if %i%==1 set KMS_Sev=kms.03k.org
if %i%==2 set KMS_Sev=kms.03k.org
if %i%==3 set KMS_Sev=kms.03k.org
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul
echo ============================================================================
echo.
echo.
cscript //nologo ospp.vbs /act | find /i "successful"
(echo.
echo ============================================================================
echo #Please feel free to contact me at mail2ehsanalem@gmail.com if you have any questions or concerns.
echo ============================================================================
choice /n /c YN /m "Would you like to visit my Page [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 "http://github.io/agileehsan"
goto halt
:notsupported
echo.
echo ============================================================================
echo Sorry! Your version is not supported.
echo.
:halt
pause >nul
@Mohamed1349
Copy link

it was actually very helpful, and i like the way its straight forward. Thank you

@deemaas
Copy link

deemaas commented Apr 15, 2024

Its working! Thank you!

@pramodsha2015
Copy link

It worked, Thankyou

@LackoA
Copy link

LackoA commented Apr 28, 2024

Where can I download the 2019 office to use this on?

@aljl288
Copy link

aljl288 commented May 2, 2024

anyone faced the office is not genuine banner after activated? any idea how to resolve this

@Kostav1999
Copy link

Thank you very very much. It's working well 😊

@azeemarain
Copy link

Thank you so much brother, it actually worked....

@mosesmutuma
Copy link

damn! Thanks bro!!!

@YASHBRO
Copy link

YASHBRO commented May 9, 2024

It works flawlessly
Just paste this script as a .bat file and run it as admin from any location on your system

@218w1d7706
Copy link

@mndambuki man you are god. your code works amazing. thankyou so much

@SimpleX-T
Copy link

Thanks, it works like magic, though i'll have to not sign in😁😄

@Faisal-thegps
Copy link

Thanks.
I only signed up to Github to show appreciation to the owner of this thread!!

@hkimi02
Copy link

hkimi02 commented May 19, 2024

works like charm , Thank you !

@Alexseyf
Copy link

Thanks.. working

@karthikraj02
Copy link

karthikraj02 commented May 21, 2024

Hey any know the instructions can you guys share the instructions

@Alexseyf
Copy link

Hey any know the instructions can you guys share the instructions

Create a text file, copy the script and paste in the body. Than save with the name officeActivator.bat and run with cmd admin

@Jamesezra
Copy link

Thanks a million bro. It worked!!!!!!!!! I am grateful.

@Divine-Favour
Copy link

This worked like magic. Thank you so much. I have tried so many things until this. You rock man!

@sprucethisplace
Copy link

It only says "Activating Office" then jumps to "Would you like to visit my page?" without mentioning if it's successful or not. Please help :(

@218w1d7706
Copy link

@sprucethisplace i guess it's activated.check once

@tressietrickel
Copy link

I got office 2021 pro plus from microsoft partner https://hypestkey.com/product/office-2021-professional-plus/, key activated without any problem

@NahidMahamud
Copy link

It worked for my MS office professional plus 2019. Thanks.

@alokbihari
Copy link

I am getting an error message when running it, please help me
image

@NahidMahamud
Copy link

I am getting an error message when running it, please help me image

I'm not sure, but from your screenshot, it seems like you have installed office in a different location than the default directory. Thats why the program cant find your office folder.

@semasgisele
Copy link

I got office 2021 pro plus from microsoft partner https://hypestkey.com/product/office-2021-professional-plus/, key activated without any problem

Thanks, that work for me

@kira-light-yagami
Copy link

The system cannot find the path specified. The system cannot find the path specified.

its showing this

this is the image of ProgramFiles and ProgramFiles(x86) folder is same. image

cannot find this image

i have installed the ms office 365 app from ms store. anyone guide what to do?

you have installed office 365 but this is for office 2019 "https://archive.org/details/microsoft-office-2019-pro-plus-16.0.10325.20118-64-bit#reviews" use this to install office 2019

@MahmoudAbdullahAnani
Copy link

but how to use?

@mrtnwilliam
Copy link

mrtnwilliam commented Jun 10, 2024

It worked when I clicked run as administrator
Thank you very much.

@roadsrosam
Copy link

Received key 2019 pro plus on https://hypestkey.com/product/microsoft-office-professional-plus-2019/
and they provide me that guide for activate

Download setup files for MS Office Pro Plus 2019
https://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img

After download install
Open word/excell
Click activation via internet
Put code

Activated easy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment