From 2ea58190691026822ef47304a7ff3e22f9fffbf6 Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:51:05 -0500 Subject: [PATCH] Add NoRestart --- RemoveAi.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RemoveAi.ps1 b/RemoveAi.ps1 index 227f699..caa6272 100644 --- a/RemoveAi.ps1 +++ b/RemoveAi.ps1 @@ -177,7 +177,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 *>$null + Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -NoRestart -ErrorAction Stop *>$null } catch { #hide error