Skip to content

Instantly share code, notes, and snippets.

@thdtt
Created July 15, 2021 06:12
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 23 You must be signed in to fork a gist
  • Save thdtt/61236d7c4c6090e85ac34b33e7318a18 to your computer and use it in GitHub Desktop.
Save thdtt/61236d7c4c6090e85ac34b33e7318a18 to your computer and use it in GitHub Desktop.
Office 365 Activator
@echo off
title Activate Office 365 ProPlus for FREE - MSGuides.com&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products: Office 365 ProPlus (x86-x64)&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\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.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:WFG99 >nul&cscript //nologo ospp.vbs /unpkey:DRTFM >nul&cscript //nologo ospp.vbs /unpkey:BTDRB >nul&cscript //nologo ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 >nul&set i=1
:server
if %i%==1 set KMS=kms7.MSGuides.com
if %i%==2 set KMS=kms8.MSGuides.com
if %i%==3 set KMS=kms9.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS% >nul&echo ============================================================================&echo.&echo.
cscript //nologo ospp.vbs /act | find /i "successful" && (echo.&echo ============================================================================&echo.&echo #My official blog: MSGuides.com&echo.&echo #How it works: bit.ly/kms-server&echo.&echo #Please feel free to contact me at msguides.com@gmail.com if you have any questions or concerns.&echo.&echo #Please consider supporting this project: donate.msguides.com&echo #Your support is helping me keep my servers running everyday!&echo.&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 "http://MSGuides.com"&goto halt
:notsupported
echo.&echo ============================================================================&echo Sorry! Your version is not supported.&echo Please try installing the latest version here: bit.ly/odt2k16
:halt
pause >nul
@SkullRunnerGR
Copy link

how do I unblock the connection it refuses to connect for me, I use cloudflare dns

@albertasetena
Copy link

Worked
Thanks man

@MamadouAlySy
Copy link

working for me. thanks

@jaydumisuni
Copy link

its not working

did you open it has admin

@MalikSayriii
Copy link

MalikSayriii commented May 28, 2023

not working now,
its saying product activated successfully but actually its not.
Officee 365 error 2023-05-28 174518

@SamarthBhogre
Copy link

worked for me

@MaxiCattaneoCvetic
Copy link

is this code still working?

@Mohammedsofia
Copy link

Mohammedsofia commented Jun 22, 2023 via email

@Code-with-aaditya
Copy link

giving warnning

@Bishu22
Copy link

Bishu22 commented Aug 27, 2023

bro.. this is microsoft office professional plus 2016 not 365

@cpamungkas
Copy link

ok this worked for me, but this is for microsoft office professsional plus 2016
image

@Stabber15
Copy link

You must run it as Administrator in order to work.

@Diwakar567
Copy link

How to

is this code still working?

Yes but don't use because my system behaving badly after running

@Diwakar567
Copy link

How to deactivate this bat file plz help me anyone

@MadhavMahajan5
Copy link

how to deactivate ? its showing warning

@Kirtanpatel11
Copy link

To deactivate microsoft office professional plus 2016, you need to follow the below steps:-

  1. Open cmd as administrator
  2. Type Locate the location of MS Office, mine is installed in c:\Program files\Microsoft Officeor in c:\Program files (x86)
  3. Copy the MS office location address.
  4. Paste it on cmd and type cscript before the address line and press ENTER
  5. Put double quote before and after the address line..
    cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus and Press ENTER
  6. There will be one text written as (Last 5 character of installed product key : XXXXX) the poduct key displays the last 5 digit of product key
  7. Now, press arrow up key to redo the first command.
  8. Delete dstatus and type unpkey: <Enter the Last 5 character of installed product key> and Press ENTER
  9. That's it...EZ

@Diwakar567
Copy link

How to remove warning

@kamran8586
Copy link

Not working for me

@sajjadjaved01
Copy link

Working on MS 365

@ivvitan
Copy link

ivvitan commented Feb 4, 2024

Not work for Office 365

@mareedee
Copy link

mareedee commented Feb 8, 2024

@sajjadjaved01 how did it work for you

@sajjadjaved01
Copy link

@sajjadjaved01 how did it work for you

bro copy paste it in notepad > save as > all files > name -> "activator.bat"
then run it as admin

@vaibhav19981
Copy link

worked for me thanks a lot

@Marthasentlep
Copy link

Thanks, that work for me,...
cmd

xcdr

@vasanthakumar21
Copy link

nice , working ! date : 04-03-2024

@Kamal02D
Copy link

thank you so much , it's working

@MadBlf
Copy link

MadBlf commented Mar 31, 2024

Does it work for macOS?

@jinagirano
Copy link

jinagirano commented Apr 5, 2024

office 365(cloud storrage, and pay monthly) Office 2021 pro plus(no cloud storrage, but lifetime) try https://s2keys.com/ microsoft partner for office 2021 pro plus, got key, activated without any problem

@Mamamexicos
Copy link

office 365(cloud storrage, and pay monthly) Office 2021 pro plus(no cloud storrage, but lifetime) try https://s2keys.com/ microsoft partner for office 2021 pro plus, got key, activated without any problem

Worked, thanks you!

@AmrHabib1979
Copy link

not working for me
1

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