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
@crabdemlastina
Copy link

Ty

@xlxk-of
Copy link

xlxk-of commented Sep 8, 2022

anyone having issues with widows defender, turn off real time protection. Run as admin, wait AT LEAST 5 minutes, if it doesnt work just buy windows

@Magnetrix-Hex
Copy link

Its a Malware / Trojan (Trojan:Win32/Skeeyah.A!MTB).
Its a HACKER......BEWARE...BEWARE...BEWARE
ITS....HACKER....HACKER....HACKER....TROJAN...TROJAN...TROJAN...

@ileathan
Copy link

ileathan commented Nov 30, 2022

Its a Malware / Trojan (Trojan:Win32/Skeeyah.A!MTB). Its a HACKER......BEWARE...BEWARE...BEWARE ITS....HACKER....HACKER....HACKER....TROJAN...TROJAN...TROJAN...

Edit: Oh sorry for my last text I thought you were talking to the OP.

@q0wbx
Copy link

q0wbx commented Dec 16, 2022

not even all version

@krystian3w
Copy link

Github seems removed comment with linked trojan with spam of empty li elements (~120 lines).

@Tiethuz
Copy link

Tiethuz commented Dec 20, 2022

Does this still work?

@rohitbaijal
Copy link

yes it worked. thank you !!

@rohitbaijal
Copy link

Does this still work?

yes for me it worked.

@Diga1jj
Copy link

Diga1jj commented Jan 6, 2023

NOT workeng for me

@faslanetech
Copy link

faslanetech commented Jan 10, 2023

works for me as of today (1-10-23) everyone saying it's a virus blah blah, use common sense, its NOT. Everyone saying it doesn't work, have PATIENCE it DOES work. Jesus.......common sense people, common sense.....

literally JUST used it again. It seems to have a mind if it’s own but it did work after about 3 mins. Sometimes it’s a few seconds, sometimes minutes and sometimes I reboot to flush everything and it works so yeah….works great. Have not EVER has Windows security or otherwise report it as a virus or malware, because it’s NOT….literally never once has anything popped up attempting to block it. Now the MAS .bat file for office will but you simply turn off live detection in windows security first. Also not a malware or virus.

@Banois
Copy link

Banois commented Jan 15, 2023

It seemed to keep saying "failed to connect to server," it works on other devices but on my laptop it says about 5 of those then closes itself... yes I ran it as a admin...

@btwitsdhruuv
Copy link

faced the same issue

@Yarpopcat08
Copy link

Its a Malware / Trojan (Trojan:Win32/Skeeyah.A!MTB). Its a HACKER......BEWARE...BEWARE...BEWARE ITS....HACKER....HACKER....HACKER....TROJAN...TROJAN...TROJAN...

Edit: Oh sorry for my last text I thought you were talking to the OP.

Cmon, stop believing the MS Defender. Seriously, does the "trojan" name give you anything? If it doesn't, don't beleive it and don't spread disinformation.

@praveen4781
Copy link

It seemed to keep saying "failed to connect to server," it works on other devices but on my laptop it says about 5 of those then closes itself... yes I ran it as a admin...

same problem with me please help me

@praveen4781
Copy link

It seemed to keep saying "failed to connect to server," it works on other devices but on my laptop it says about 5 of those then closes itself... yes I ran it as a admin...

bro same type of problem with me also

@faslanetech
Copy link

It seemed to keep saying "failed to connect to server," it works on other devices but on my laptop it says about 5 of those then closes itself... yes I ran it as a admin...

same problem with me please help me

I literally have copied and pasted the contents into a new file and re-saved it and that’s made it work almost instantly but it shouldn’t matter it’s the same contents. Weird but always works sooner or later. Kinda has a mind of its own sometimes but it’s always lays worked for me. Sometimes I’ll reboot and run it again and that seems to speed it up a bit. You might try that.

@panyiliu
Copy link

Works like a charm !

@wedlinedesginer
Copy link

is it safe

@Diga1jj
Copy link

Diga1jj commented Feb 18, 2023 via email

@Krishgaming1455
Copy link

thankyou a lot .

@nilotpol8448
Copy link

nilotpol8448 commented Feb 26, 2023

Not working for me. its shuts down everytime after 4 line of server filed written line, it doesn't show the usual "shut down y/n" message. the water mark disappears but after some time probably 2 to3 hours later the water mark appears again.
my system is Windows 10 Enterprise Version 22H2.
don't know if its only me or what.

@Adeelaman
Copy link

It seemed to keep saying "failed to connect to the server."
Yes, I ran it as an admin.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Mar 7, 2023

@LizoMakinana
Copy link

While I.m about to excute it all I does I blinks the file then no cmd screen displays help

@LizoMakinana
Copy link

Uploading 16783678011405569685644846600279.jpg…

@ariaesdf
Copy link

March 2023, Still works.

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

@nilotpol8448
Copy link

nilotpol8448 commented Mar 11, 2023

Same problem as @Adeelaman.

https://msguides.com/windows-11#:~:text=%40echo%20off%0Atitle,halt%0Apause%20%3Enul works.

Thanks man this one worked for me. Even though it was for win 11 my win 10 pc is showing its activated..

@LizoMakinana
Copy link

LizoMakinana commented Mar 11, 2023 via email

@Abzelite
Copy link

Abzelite commented Apr 4, 2023

Don us it it downloads (Trojan:Win32/Skeeyah.A!MTB). This trojan scam malware beware!!!!!!!!!!!!!!!!!!!!

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