Skip to content

Instantly share code, notes, and snippets.

View war100ck's full-sized avatar
💥

war100ck

💥
  • Born in the USSR
View GitHub Profile
:: Tested on Win 11 24H2
:: Tested on Win 10 22H2
@echo off & Title Windows 10\11 quick setup v24.10 by https://t.me/wincmd64
(Net session >nul 2>&1)&&(cd /d "%~dp0")||(PowerShell start """%~0""" -verb RunAs & Exit /B)
:: check win ver
for /f %%a in ('powershell.exe -NoP -NoL -NonI -EP Bp -c "(gwmi Win32_OperatingSystem).Caption -Replace '\D'"') do (
if "%%a"=="10" echo RUN SCRIPT ? & echo. & pause & echo. & goto 10
if "%%a"=="11" echo RUN SCRIPT ? & echo. & pause & echo. & goto 11