Skip to content

Instantly share code, notes, and snippets.

@Dhanvesh
Created June 5, 2018 17:37
Show Gist options
  • Select an option

  • Save Dhanvesh/abcc26792f08755827bc2cd64c50ac3c to your computer and use it in GitHub Desktop.

Select an option

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

@Zero99-00
Copy link

i think this script is bad

@ileathan
Copy link

Always works for me.

@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

@elonmasai7
Copy link

Thanks it worked for me windows 10 pro

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

@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

@The-Dead-Comedian
Copy link

can you please tell me if this is safe?
I'm here because I am unable to afford the original windows key. Please respond.

Hello, ur computer has virus (yes its safe)

@karanveer-lca
Copy link

dosent this just hide the activation logo? i havent tried this but does it like give you access to those settings which are not available.

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