Activate via KMS

@echo off
Title Activation Tool
color 0a
set KMS=YOUR_KMS_IP_ADDRESS
color 0e

cls
echo Trying to contact the KMS…
ping -n 4 127.0.0.1>nul
ping %KMS% -n 2 | find “Reply” > nul
if %errorlevel% EQU 0 goto :NEXT
cls
color 0c
echo KMS cannot be contacted! Exiting now…
ping -n 6 127.0.0.1>nul
exit /b 0

:NEXT
color 0a
echo The KMS has been contacted.
ping -n 4 127.0.0.1>nul
echo.
Echo Activating Windows 7…
cscript C:\Windows\System32\slmgr.vbs -skms %KMS%
cscript C:\Windows\System32\slmgr.vbs -ato
ping -n 4 127.0.0.1>nul
cls
Echo Windows 7 has been activated!
ping -n 4 127.0.0.1>nul
if not exist “C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs” exit /b 0
cls
echo Activating Office 2010…
cscript “C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs” /sethst:%KMS%
cscript “C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs” /act
cls
Echo Office 2010 has been activated!
ping -n 4 127.0.0.1>nul

exit /b 0

email me