From cbc269429e1822d1e1bd638a3b13fe230b1cb70b Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sat, 8 Oct 2022 03:39:55 +0200 Subject: [PATCH] Fixed App ID for User context system filter --- Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index 0f5e5fd..1b209d2 100644 --- a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -55,7 +55,7 @@ function Get-WingetOutdatedApps { #If current user is not system, remove system apps from list if ($IsSystem -eq $false) { $SystemApps = Get-Content -Path "$WorkingDir\winget_system_apps.txt" - $upgradeList = $upgradeList | Where-Object {$SystemApps -notcontains $_} + $upgradeList = $upgradeList | Where-Object {$SystemApps -notcontains $_.Id} } return $upgradeList | Sort-Object {Get-Random}