confOS/windows/update.bat

20 lines
348 B
Batchfile
Raw Normal View History

2023-02-17 17:13:11 +01:00
@ECHO off
2022-12-12 00:08:32 +01:00
:: Start as administrator
fltmc >nul 2>&1 || (
2023-02-17 17:13:11 +01:00
PowerShell Start -Verb RunAs '%0' 2> nul || (
EXIT 1
2022-12-12 00:08:32 +01:00
)
2023-02-17 17:13:11 +01:00
EXIT 0
2022-12-12 00:08:32 +01:00
)
2023-02-15 18:13:25 +01:00
:: Windows programs
winget upgrade -h --all
2022-12-16 12:44:51 +01:00
:: Windows Update
2023-02-17 17:13:11 +01:00
PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
2022-12-16 12:44:51 +01:00
"Get-WindowsUpdate -AcceptAll -Install"
2023-02-17 17:13:11 +01:00
PAUSE
EXIT /b