From 7ffa0d0cc64e1a18e9337d2f32eb107ea71bfb8b Mon Sep 17 00:00:00 2001 From: Romanitho <96626929+Romanitho@users.noreply.github.com> Date: Mon, 17 Jan 2022 00:05:32 +0100 Subject: [PATCH] Update winget-install-and-update.ps1 --- winget-install-and-update.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winget-install-and-update.ps1 b/winget-install-and-update.ps1 index a018e93..b3170ab 100644 --- a/winget-install-and-update.ps1 +++ b/winget-install-and-update.ps1 @@ -27,4 +27,7 @@ $taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8 -AllowStartIfOn # Set up the task, and register it $task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Settings $taskSettings -Register-ScheduledTask -TaskName 'Winget Update Notify' -InputObject $task -Force \ No newline at end of file +Register-ScheduledTask -TaskName 'Winget Update Notify' -InputObject $task -Force + +# Run Winget +Get-ScheduledTask -TaskName "Winget Update" -ErrorAction SilentlyContinue | Start-ScheduledTask -ErrorAction SilentlyContinue