Digital_License_Activation
Digital_License_Activation
::=================================================================================
=======================================================
:: ----------------------------------------------------
:: This script was initially written by @s1ave77
:: Later improved by @RPO and Me (@WindowsAddict)
:: ----------------------------------------------------
::
-----------------------------------------------------------------------------------
----------------------
:: This script is a part of "Microsoft Activation Scripts" - Fork, Open Source &
clean from AV's detection
:: Homepage - https://www.nsaneforums.com/topic/316668--/ ShortURL - 0x0.st/s9j
::
-----------------------------------------------------------------------------------
----------------------
::=================================================================================
=======================================================
::=================================================================================
=======================================================
::=================================================================================
=======================================================
cd /d "%~dp0"
pushd "%~dp0"
::=================================================================================
=======================================================
::=================================================================================
=======================================================
::=================================================================================
=======================================================
echo ----------------------------------------------
echo Checking: Windows is Permanently Activated.
echo Activation is not required.
echo ----------------------------------------------
echo.
if %Unattended% EQU 1 goto Done
echo ----------------------------------------
echo Press [A] or [B] button in Keyboard :
echo ----------------------------------------
echo.
choice /C:AB /N /M "[A] I still want to Activate [B] Exit : "
if errorlevel 2 exit /b
if errorlevel 1 goto continue
)
::=================================================================================
=======================================================
:Continue
:: ------------------------------
:: Detect edition, key and sku
:: Written by @RPO (MDL)
:: ------------------------------
cls
call :Retail_OEM_Key
call :DetectEdition
echo.
del /f "%temp%\editions"
echo %osedition% Digital License Activation is Not Supported.
goto Done
::=================================================================================
=======================================================
:ParseAndPatch
:: ----------------------------------------------------
:: Multicolor outputs without any external programs
:: https://stackoverflow.com/a/5344911
:: Written by @jeb (stackoverflow)
:: ----------------------------------------------------
cls
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do
rem"') do (set "DEL=%%a")
set "color=call :Color 0C "
goto :SkipColor
:color
pushd "%temp%"
<nul set /p ".=%DEL%" > "%~2" &findstr /v /a:%1 /R "^$" "%~2" nul &del "%~2" > nul
2>&1
popd
goto :eof
:SkipColor
::=================================================================================
=======================================================
echo.
cd /d "%~dp0"
if defined no_file (
%color% "Following required file[s] are not present - Aborting" &echo:
echo.
if defined no_gather echo %gatherosstate%
if defined no_slc echo %~dp0Files\slc.dll
goto Done
)
for /f "tokens=1,3 delims=: " %%a in ('sc query wuauserv') do (if /i %%a==sTATE set
"state=%%b")
for /f "tokens=1-4 delims=: " %%a in ('sc qc wuauserv') do (if /i %%a==sTArt_type
set "start_type=%%c %%d")
if defined error_ (%color% "Error reason - Most likely Windows Update service is
protected with some methods." &echo:)
echo.
cscript /nologo %windir%\system32\slmgr.vbs -ato
goto Done
::=================================================================================
=======================================================
::=================================================================================
=======================================================
:DetectEdition
::=================================================================================
=======================================================
:Retail_OEM_Key
rem Edition SKU Retail/OEM_Key
(
echo Core 101 YTMG3-N6DKC-DKB77-7M9GH-8HVX7
echo CoreN 98 4CPRK-NM3K3-X6XXQ-RXX86-WXCHW
echo CoreCountrySpecific 99 N2434-X9D7W-8PF6X-8DV9T-8TYMD
echo CoreSingleLanguage 100 BT79Q-G7N6G-PGBYW-4YWX6-6F4BT
echo Education 121 YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY
echo EducationN 122 84NGF-MHBT6-FXBX8-QWJK7-DRR8H
echo Enterprise 4 XGVPP-NMH47-7TTHJ-W3FW7-8HV2C
echo EnterpriseN 27 3V6Q6-NQXCX-V8YXR-9QCYV-QPFCT
echo EnterpriseS2015 125 FWN7H-PF93Q-4GGP8-M8RF3-MDWWW
echo EnterpriseSN2015 126 8V8WN-3GXBH-2TCMG-XHRX3-9766K
echo EnterpriseS2016 125 NK96Y-D9CD8-W44CQ-R8YTK-DYJWX
echo EnterpriseSN2016 126 2DBW3-N2PJG-MVHW3-G7TDK-9HKR4
echo Professional 48 VK7JG-NPHTM-C97JM-9MPGT-3V66T
echo ProfessionalN 49 2B87N-8KFHP-DKV6R-Y2C8J-PKCKT
echo ProfessionalEducation 164 8PTT6-RNW4C-6V7J2-C2D3X-MHBPB
echo ProfessionalEducationN 165 GJTYN-HDMQY-FRR76-HVGC7-QPF8P
echo ProfessionalWorkstation 161 DXG7C-N36C4-C4HTG-X4T3X-2YV77
echo ProfessionalWorkstationN 162 WYPNQ-8C467-V2W6J-TX4WX-WT2RQ
echo ServerRdsh 175 NJCF7-PW8QT-3324D-688JX-2YV66
::=================================================================================
=======================================================
:Done
echo.
if %Unattended% EQU 1 echo Exiting in 10 seconds... & ping -n 11 127.0.0.1 > nul &
exit /b
echo Press any key to exit...
pause >nul
exit /b