diff --git a/RemoveAi.ps1 b/RemoveAi.ps1 index deec2e5..a20b800 100644 --- a/RemoveAi.ps1 +++ b/RemoveAi.ps1 @@ -85,7 +85,7 @@ foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\ #remove recall optional feature $ProgressPreference = 'SilentlyContinue' try { - Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop | Out-Null + Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop *>$null } catch { #hide error