Win10_KMS_ Activation script
@ echo off&setlocal EnableDelayedExpansion&color 5e
Title KMS_Activation for Windows 10-(Comlan)
Echo:
Echo:: automatically check the version of Win10 and import the corresponding KMS key::
Echo:
Echo:: then connect to the specified KMS server to activate Win10::
Echo:
Echo:: 2017-10::
Echo:
Echo.&echo.
:: if the activation fails, it may be because the KMS server can not be connected
You only need to modify the following KMS server address
Set KMS_Sev=172.19.34.146
:: = = the following need not be changed =
Call: verchk
Call: adminchk
Set Core=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Set CoreCountrySpecific=PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Set CoreN=3KHY7-WNT83-DGQKR-F7HPR-844BM
Set CoreSingleLanguage=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Set Professional=W269N-WFGWX-YVC9B-4J6C9-T83GX
Set ProfessionalN=MH37W-N47XK-V7XM9-C7227-GCQG9
Set Enterprise=NPPR9-FWDCX-D2C8J-H872K-2YT43
Set EnterpriseN=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Set Education=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Set EducationN=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Set EnterpriseS=WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Set EnterpriseSN=2F77B-TNFGY-69QQF-B8YKP-D69TJ
For / f "tokens=3 delims="% I in ('reg QUERY "HKLM\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion" / v "EditionID"') do set EditionID=%%i
If defined% EditionID% (
Cscript / / Nologo% windir%\ system32\ slmgr.vbs / ipk!% EditionID%!
Cscript / / Nologo% windir%\ system32\ slmgr.vbs / skms% KMS_Sev%
Cscript / / Nologo% windir%\ system32\ slmgr.vbs / ato
) else (
Echo.&echo Not found DEFINED Key: "% EditionID%".
Echo.
)
Pause
Exit
: verchk
Ver | find "10.0." > nul 2 > nul & & (goto: EOF)
Echo.&echo The current OS is NOT Windows 10.
Echo.&pause
Exit
: adminchk
Reg query "HKU\ S Mel 1-5-19" > nul 2 > nul | | (
Cls&echo.&echo Run as ADMINISTRATOR, Pls.
Echo.&echo Press any key to exit.
Echo.&pause > nul
Exit)
Goto: EOF