2022-01-27 20:59:33 +00:00
|
|
|
@echo off
|
2022-10-12 20:07:47 +00:00
|
|
|
|
2022-10-27 23:20:21 +00:00
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
:: Put WAU Arguments here ::
|
|
|
|
::::::::::::::::::::::::::::
|
2022-10-12 20:07:47 +00:00
|
|
|
|
2022-10-27 23:20:21 +00:00
|
|
|
SET arguments=-UpdatesAtLogon -UpdatesInterval Weekly -InstallUserContext -StartMenuShortcut -DesktopShortcut
|
|
|
|
|
|
|
|
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
:: Run Powershell Script ::
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
|
2022-11-01 10:12:06 +00:00
|
|
|
SET PowershellCmd=Start-Process powershell.exe -Argument '-noprofile -executionpolicy bypass -file "%~dp0Winget-AutoUpdate-Install.ps1" %arguments%
|
2022-10-27 23:20:21 +00:00
|
|
|
powershell -Command "& {Get-ChildItem -Path '%~dp0' -Recurse | Unblock-File; %PowershellCmd%'}" -Verb RunAs
|