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