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