From bf518522f8b55cddb9ff3a90914b12ff660ccce8 Mon Sep 17 00:00:00 2001 From: Chris Titus Tech Date: Tue, 13 Aug 2024 12:09:47 -0500 Subject: [PATCH] fix error --- functions/private/Invoke-WinUtilMicroWin-Helper.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 index 79c1f00b..15be02d8 100644 --- a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 +++ b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 @@ -145,7 +145,6 @@ function Remove-ProvisionedPackages() { $_.PackageName -NotLike "*Foundation*" } - if ($?) { $appxProvisionedPackages = $appxProvisionedPackages | Where-Object { $_.PackageName -NotLike "*SecHealthUI*" } $counter = 0 foreach ($appx in $appxProvisionedPackages) {