confOS/windows/update.bat

20 lines
337 B
Batchfile
Raw Normal View History

2023-04-05 12:36:58 +02:00
@ECHO OFF
2022-12-12 00:08:32 +01:00
:: Start as administrator
2023-04-05 12:38:43 +02:00
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
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
2023-04-05 12:42:54 +02:00
EXIT /B