Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
47 views1 page

Activate CMD

This document is a batch script for activating Microsoft Office products, specifically Office Standard and Professional Plus 2021. It checks for the presence of the necessary activation script, sets the KMS server, and attempts to activate the software using a specified product key. The script includes error handling and provides feedback on the activation process.

Uploaded by

sivamac86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Activate CMD

This document is a batch script for activating Microsoft Office products, specifically Office Standard and Professional Plus 2021. It checks for the presence of the necessary activation script, sets the KMS server, and attempts to activate the software using a specified product key. The script includes error handling and provides feedback on the activation process.

Uploaded by

sivamac86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

@echo off

&echo.&echo #Supported products:&echo - Microsoft Office Standard 2021&echo -


Microsoft Office Professional Plus 2021&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\ProPlus2021VL_KMS*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\
Licenses16\%%x" >nul)&echo.&echo
===================================================================================
==&echo Activating your product...&cscript //nologo slmgr.vbs /ckms
>nul&cscript //nologo ospp.vbs /setprt:1688 >nul&cscript //nologo ospp.vbs
/unpkey:6F7TH >nul&set i=1&cscript //nologo ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-
3DYQT-6F7TH >nul||goto notsupported

:skms

if %i% GTR 10 goto busy

if %i% EQU 1 set KMS=kms7.MSGuides.com

if %i% EQU 2 set KMS=107.175.77.7

if %i% GTR 2 goto ato

cscript //nologo ospp.vbs /sethst:%KMS% >nul

:ato

echo
===================================================================================
==&echo.&echo.&cscript //nologo ospp.vbs /act | find /i "successful" && (echo.&echo

You might also like