From 90f335e6afe5c23c86e189bd1340f40b7853749d Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:55:31 -0400 Subject: [PATCH] Disable Recall Optional Feature --- RemoveAi.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RemoveAi.ps1 b/RemoveAi.ps1 index 3d78625..75507e8 100644 --- a/RemoveAi.ps1 +++ b/RemoveAi.ps1 @@ -82,6 +82,13 @@ foreach ($choice in $aipackages) { ## undo eol unblock trick to prevent latest cumulative update (LCU) failing foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\EndOfLife\$sid\$PackageName" -force -ErrorAction SilentlyContinue >'' } } +#remove recall optional feature +try { + Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop +} +catch { + #hide error +} Write-Host 'Removing Package Files...'