confOS/windows/update.bat

20 lines
349 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
2023-04-02 20:36:13 +02:00
fltmc > NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2> NUL || (
2023-02-17 17:13:11 +01:00
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