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) {