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

@RizzWann,

This code made a trojan virus in my case, I recommend all to not use it

Please elaborate.

@ileathan
Copy link

ileathan commented Jun 10, 2023

But again "Application.KMSTool.AH" would be an expected false positive.

But isn't it a key management tool, @ileathan? As I stated, that designation shouldn't inherently indicate that it's malicious, unless my comprehension of such designations is incorrect.

Per https://forums.malwarebytes.com/topic/298199-what-is-applicationkmstoolah/?do=findComment&comment=1568557, perhaps Application.KMSTool.AH does designate it as malicious.

[it] is probably not using gpg

Yeah, that'd probably be unbeatable without replacing parts of Windows, since GPG (at least usually; correct me if I'm wrong) uses that kind of verification that requires impossible computation of prime number square roots.

Well no. Prime numbers are used in cryptography because they are difficult to factorize (you wont get a remainder of 0) yes but that is not exclusive to GPG or even asymmetric encryption. They are just harder to predict but you don't technically need to use them.

Public Key Infrastructure models like GPG use asymmetric encryption, that is to say the keys used to encrypt and decrypt that most people seem to more intuitively understand are not the same and replaced with two keys (massive primes/semi primes) one which is a secret and one which is derived from the secret. The secret is used to decrypt and sign. The public is used to encrypt and verify.

GPG stands out for one big reason. It is OPEN SOURCE. Fat chance you find that in windows code, well except when shamelessly lifted.

@ileathan
Copy link

This code made a trojan virus in my case, I recommend all to not use it

False positive.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jun 10, 2023

GPG stands out for one big reason. It is OPEN SOURCE. Fat chance you find that in windows code

https://github.com/gpg/gnupg#readme states that it's licensed under GPLv3. @ileathan, does that have the same requirement as v2 - that all modifications be posted upstream? That'd be a reason not to include it in Windows.

@ileathan
Copy link

ileathan commented Jun 10, 2023

Its open source, windows is closed.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jun 10, 2023

Was that really worth stating...? It's pretty obvious.

@ileathan
Copy link

That'd be a reason not to include it in Windows.

Are you trolling me?

@RokeJulianLockhart
Copy link

Are you trolling me?

Although I'm unfamiliar with the term, a cursory search makes me think I should rather ask the same – I've never had someone think that clarification that Windows is proprietary was necessary.

That'd be a reason not to include it in Windows.

I know. I just said that. What it this?!

@ileathan
Copy link

Is there another language I can speak to you in?

Its open source, windows is closed.

@RokeJulianLockhart
Copy link

I know. Why do you keep saying that, @ileathan? I never, ever insinuated otherwise.

@ileathan
Copy link

ileathan commented Jun 10, 2023

I am saying that would be a reason not to include it in the closed windows operating system code. If you did it would not be open. No?

@Ahmed-Abd-Elhady
Copy link

i think this script is bad

@ileathan
Copy link

Always works for me.

@teachbard
Copy link

ITS A MALWARE. YOU WILL BE LISTED AS A VICTIM ON DARK NET. DON'T USE THIS. ITS A MALWARE. IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, , IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, IT'S A TRAP, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE, ITS A MALWARE

@ileathan
Copy link

Lol <3

@infradragon
Copy link

my man still using key management for his windows
real gigachads activate by generating genuineticket.xml and a custom slc.dll

@infradragon
Copy link

if anyone here (not you ileathan) genuinely uses this script to activate windows i will eat my pants

@infradragon
Copy link

also you can obfuscate your server addresses so that they dont generate false positives
(similar to this) massgravel/Microsoft-Activation-Scripts@b5c63b2

@Edward-Silver
Copy link

Works like a cham ^_^
Thanks
for other people who want to use it:
1- Copy the code
2- open a new notepad file & paste it there
3- Save as >> name it watever but be sure to add [.bat] to the end of the name
4- right click on it & run it as adminstrator

Also, I had to run it a couple of times until it connected to the server.
so if it timed out just try again till it works. I also heard that creating a new one and running it helped for some ppl****

@under1aker
Copy link

simplified:

@echo off
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
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 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
cscript //nologo c:\windows\system32\slmgr.vbs /skms kms8.MSGuides.com >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ato
shutdown.exe /r /t 00

I haven't had any issues with false positives either.

@elonmasai7
Copy link

Thanks it worked for me windows 10 pro

@vzph
Copy link

vzph commented Sep 17, 2023

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

@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