Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Microsoft Office 2016 activation script for all versions
@echo off
title Activate Microsoft Office 2016 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2016&echo - Microsoft Office Professional Plus 2016&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 ospp.vbs /unpkey:WFG99 >nul&cscript //nologo ospp.vbs /unpkey:DRTFM >nul&cscript //nologo ospp.vbs /unpkey:BTDRB >nul&cscript //nologo ospp.vbs /unpkey:CPQVG >nul&cscript //nologo ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 >nul&set i=1
if %i%==1 set
if %i%==2 set
if %i%==3 set
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.&echo #My official blog: #How it works: #Please feel free to contact me at if you have any questions or concerns.&echo.&echo #Please consider supporting this project: #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 ""&goto halt
echo.&echo ============================================================================&echo Sorry! Your version is not supported.&echo Please try installing the latest version here:
Copy link

hamza990 commented Sep 27, 2018

its not working on my system,,,, error accur that kms connection failed.....?
kindly help me

Copy link

TryhardOne commented Nov 5, 2018

You need to run it as admin, otherwise it will always give you the connection failed error

Copy link

Abhishek-2019 commented Sep 13, 2019

I am not able to copy the code into notepad. It says dangerous/contains virus. Any workaround this issue ?

Copy link

iusmankh1 commented Nov 23, 2019

if you are using window 10 turn off window defender.

Copy link

samtaber commented Aug 20, 2020

Copy link

azeerman commented Aug 21, 2020

@samtaber :

infected with virus

That's wrong. I just scanned it and its only the kms thing which activates software. 🤦
Obviously the hash in your link is not the same as mine, so for sûr you did scan some thing else. so please open your eyes or change your glasses.

Copy link

bkrajendra commented Mar 3, 2021

if %i%==1 set
if %i%==2 set
if %i%==3 set

Copy link

sharifulgeo commented May 27, 2022

The connection to my KMS server failed! Trying to connect to another one...
Please wait...

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