From e2dba10de691edeea85bfda3fded12076209e494 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Tue, 4 Oct 2022 01:10:44 +0200 Subject: [PATCH] Get-WingetSystemApps if system --- Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 | 3 +++ 1 file changed, 3 insertions(+) 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} }