confOS/windows/update.bat
2023-04-05 12:42:54 +02:00

19 lines
347 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