Fixed App ID for User context system filter
parent
31732404f6
commit
cbc269429e
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue