confOS/windows/update.bat
Mylloon 2d46d36bc0
Reduce line size
Using tab size of 2 instead of 4 in all scripts
2023-09-13 11:51:35 +02:00

19 lines
337 B
Batchfile

@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
:: Windows programs
winget upgrade -h --all
:: Windows Update
PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
"Get-WindowsUpdate -AcceptAll -Install"
PAUSE
EXIT /B