diff --git a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index 1686a09..ec781e1 100644 --- a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -57,6 +57,9 @@ function Get-WingetOutdatedApps { $SystemApps = Get-Content -Path "$WorkingDir\winget_system_apps.txt" $upgradeList = $upgradeList | Where-Object {$SystemApps -notcontains $_} } + else { + Get-WingetSystemApps + } return $upgradeList | Sort-Object {Get-Random} }