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
@Rvn1304
Copy link

Rvn1304 commented Jun 29, 2024

looking for office 365

@AbdullahKhalide
Copy link

this need internet or no

@ansmandar
Copy link

It worked like a charm.. :) Thank you for sharing..

@AbdullahKhalide
Copy link

thank you pro it successfully

@shabbirahmedshad
Copy link

Thank you it works❤️❤️

@arif32ps
Copy link

I signed up here only to show you my gratitude. This worked like magic. Thank you so much. I have tried so many things until this. You rock man! It worked like a charm.. :) Thank you for sharing..

@aashika262
Copy link

Thank you so much. It worked!!!!

@sekpehenry
Copy link

It worked. thanks so much

@ngocbae98
Copy link

Not working for me!

@simesh
Copy link

simesh commented Jul 21, 2024

It worked. Thank you so much for your contributions.

@mian7860
Copy link

its not working they said its ready but still its not working

@mian7860
Copy link

Capture
that the image

@sreejithforchrist
Copy link

wow amazing!!!! it really worked. thanks to the team crew

@richardDobron
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 :(

You need to run this script as Administrator

@Butcherson1
Copy link

is it possible to run the Script on a Mac (M2)

@Fraz-Liaqat
Copy link

What should be the default location for installing Office so that this code will work?

@ThaiTam1169
Copy link

It worked very well this time too. Thanks for your sharing!!!

@hays-sleiman
Copy link

Can confirm this worked for activating Office 2019 Pro Plus. And I didn't need to run it as Administrator and no reboot required. I ran it as standard user, opened Office and it showed as Activated right away.

@amrelnaki
Copy link

amrelnaki commented Sep 7, 2024

Uploading WhatsApp Image 2024-09-07 at 1.35.24 PM.jpeg…
The lists in Excel contain confusion or error marks, given that the product was activated through this method. What is the solution to remove error marks from the lists?

@technicalgurupc
Copy link

@isabellahenderson
Copy link

I got Office 2019 Professional Plus from the Microsoft partner at https://9xkey.com/index.php/product/microsoft-office-professional-plus-2019-ms-office-pro-plus-2019-download. The key activated without any issues—smooth and straightforward experience.

It's amazing, i implement today, and works without complications

@hannahchavez
Copy link

worked perfectly

@totoxx
Copy link

totoxx commented Sep 15, 2024

shopasoft

@totoxx
Copy link

totoxx commented Sep 15, 2024

shopasoft

@Neoseopo
Copy link

https://hypestkey.com/

https://appsource.microsoft.com/en-us/marketplace/partner-dir/4e902d25-237b-480e-8eeb-480dfbc7eab8/overview
Microsoft Partner
https://www.g2g.com/hypestkey/
2000+ orders
Got
Office 2019 pro plus, microsoft partner, activated for me without any problem

@techjannat
Copy link

@totoxx
Copy link

totoxx commented Sep 18, 2024

I Bought office 2021 pro plus key from shopasoft with unbelievable low price. They provide me a key in a few minutes and worked for lifetime.

@totoxx
Copy link

totoxx commented Sep 18, 2024

Get office 2021 pro plus key from shopasoft with good price. They provide lifetime licence key.

@Goodfellow2
Copy link

I Take office 2019 pro plus genuine Microsoft key from a Microsoft partner licencekeep with unbelievable low price. They provide me my key instantly and worked for lifetime. link here

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