confOS/windows/update.bat
2022-12-24 16:25:14 +01:00

19 lines
348 B
Batchfile

@echo off
:: Start as administrator
fltmc >nul 2>&1 || (
powershell Start -Verb RunAs '%0' 2> nul || (
exit 1
)
exit 0
)
:: Windows Update
powershell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
"Get-WindowsUpdate -AcceptAll -Install"
:: Windows programs
winget upgrade -h --all
pause
exit /b