Skip to content

Instantly share code, notes, and snippets.

@Dhanvesh
Created June 5, 2018 17:37
Show Gist options
  • Save Dhanvesh/abcc26792f08755827bc2cd64c50ac3c to your computer and use it in GitHub Desktop.
Save Dhanvesh/abcc26792f08755827bc2cd64c50ac3c to your computer and use it in GitHub Desktop.
Windows 10 Activation Batch File
@echo off
title Windows 10 ALL version activator&cls&echo ************************************&echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation...
cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ >nul
echo ************************************ &echo.&echo.&set i=1
:server
if %i%==1 set KMS_Sev=kms.shuax.com
if %i%==2 set KMS_Sev=NextLevel.uk.to
if %i%==3 set KMS_Sev=GuangPeng.uk.to
if %i%==4 set KMS_Sev=AlwaysSmile.uk.to
if %i%==5 set KMS_Sev=kms.chinancce.com
if %i%==6 exit
cscript //nologo c:\windows\system32\slmgr.vbs /skms %KMS_Sev% >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ato | find /i "successfully" && (echo.& echo ************************************ & echo. & choice /n /c YN /m "Do you want to restart your PC now [Y,N]?" & if errorlevel 2 exit) || (echo The connection to the server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto server)
shutdown.exe /r /t 00
@under1aker
Copy link

why is there a shutdown command there, what does it do?

shutdown.exe /r /t 0 - launch system shutdown prog to reboot (/r) the computer immediately (/t 0) to activate the license, because the changes take effect only after a reboot :/

@Anythingfrees
Copy link

Thank you, https://hypestkey.com/product/windows-11-pro/ I bought the key here for cheap price, the key was retail and activated without problems. and they microsoft partner

@ileathan
Copy link

ileathan commented Sep 24, 2023

Don't give virus Microsoft too much money unless you have too, copy pasting the code is also often more practical.

@jhcrypt
Copy link

jhcrypt commented Oct 21, 2023

How do you remove this if needed?

@MrChucklepants
Copy link

So now I'm more confused than ever. I'm trying to activate Win 10 Pro. Can anyone please tell me how to do that, in terms so simple a moron (Hello!) could understand?

@kelvinleongcc
Copy link

wow it work for me 24/1/2024 window 10 pro. i copied the first script copy to text save as .bat

save txt file as .bat
Run as admin
press enter when CMD opens
wait for batch to finish running
restart computer

done

@Vitaminese
Copy link

Vitaminese commented Feb 19, 2024

Thank you, https://hypestkey.com/product/windows-11-pro/ I bought the key here for cheap price, the key was retail and activated without problems. and they microsoft partner

That working thanks, also found coupon instahype10, i bought pro version, activated without any problem

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