confOS/windows/update.bat
2023-10-01 11:01:39 +02:00

22 lines
438 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
:: NOTE: If you want to not update a package, you can pin it:
:: winget pin add --id ID.OF.THE.APP
:: Windows Update
PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
"Get-WindowsUpdate -AcceptAll -Install"
PAUSE
EXIT /B