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

It working for my system!!!
Microsoft Windows 21H2 [Version 10.0.19044.1466]

Thanks !!!

@Mhd244
Copy link

Mhd244 commented Jun 5, 2022

YO THANKS MAN I SUFFERED FOR ALMOST " YEARS DUDE YOU MADE MY DAY

@ileathan
Copy link

ileathan commented Jun 20, 2022

And thanks for a third time! Stupid microsoft

Copy link

ghost commented Jun 25, 2022

Bruh Windows 10 Defender be like: Nope
And so I had to make an executable that generates that bat file an quickly runs it.
Still failed to connect to the server like a billion times.....

@basitcodeenv
Copy link

basitcodeenv commented Jul 4, 2022

Tested on Latest Window Version 21H2 (OS Build 19044.1288)

Follow the Step Below:

  1. Create New .txt File and Open the new file
  2. Copy the code from gist and paste in the file
  3. Save As the file as .bat extension with any name
  4. Open the File as Administrator
  5. When Command Prompt Open Press Enter then wait.
  6. Enjoy! 😀

Copy link

ghost commented Aug 8, 2022

Still windows defender doesn't like that file when you save it as .bat or even .txt ( somehow )
So I looked up in msguide.org and figured out how to properly activate windows.

Copy link

ghost commented Aug 12, 2022

its work!

@notkirb
Copy link

notkirb commented Aug 21, 2022

windows defender quite literally deletes the file

i dont even have a chance to click on it before windows defender deletes it

@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.

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