19 lines
348 B
Batchfile
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 programs
|
|
winget upgrade -h --all
|
|
|
|
:: Windows Update
|
|
PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^
|
|
"Get-WindowsUpdate -AcceptAll -Install"
|
|
|
|
PAUSE
|
|
EXIT /b
|