This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |