From 077196d0194da7753d2a84430cdfb841fd6acf3e Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:40:03 -0400 Subject: [PATCH] unregister recall tasks instead of disable when running option alone --- RemoveWindowsAi.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index 7b90488..73d1bd4 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -2563,9 +2563,10 @@ Get-ScheduledTask -TaskName "*Office Actions Server*" -ErrorAction SilentlyConti #when just running this option alone the tasks will be remade so we need to at least ensure they are disabled $command = " - Get-ScheduledTask -TaskName '*Office Actions Server*' -ErrorAction SilentlyContinue | Disable-ScheduledTask -ErrorAction SilentlyContinue - Get-ScheduledTask -TaskPath '*WindowsAI*' | Disable-ScheduledTask -ErrorAction SilentlyContinue + Get-ScheduledTask -TaskName '*Office Actions Server*' -ErrorAction SilentlyContinue | Unregister-ScheduledTask -Confirm:`$false -ErrorAction SilentlyContinue + Get-ScheduledTask -TaskPath '*WindowsAI*' | Unregister-ScheduledTask -Confirm:`$false -ErrorAction SilentlyContinue " + Run-Trusted -command $command -psversion $psversion }