From 9b4ef9abdbea0942c517da155c3e9516550e5440 Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:56:53 -0400 Subject: [PATCH] Hide Output --- RemoveAi.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RemoveAi.ps1 b/RemoveAi.ps1 index 75507e8..deec2e5 100644 --- a/RemoveAi.ps1 +++ b/RemoveAi.ps1 @@ -83,8 +83,9 @@ foreach ($choice in $aipackages) { foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\EndOfLife\$sid\$PackageName" -force -ErrorAction SilentlyContinue >'' } } #remove recall optional feature +$ProgressPreference = 'SilentlyContinue' try { - Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop + Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop | Out-Null } catch { #hide error