From d7451269f72cf5ab9ada2e20f77d9172e245482e Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:53:31 -0400 Subject: [PATCH] Kill AI Processes --- RemoveWindowsAi.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index df10c48..2cdd593 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -54,6 +54,19 @@ function Write-Status { Write-Host '~ ~ ~ Remove Windows AI by @zoicware ~ ~ ~' -ForegroundColor DarkCyan +Write-Status -msg 'Killing AI Processes...' +#kill ai processes to ensure script runs smoothly +$aiProcesses = @( + 'ai.exe' + 'Copilot.exe' + 'aihost.exe' + 'aicontext.exe' + 'ClickToDo.exe' +) +foreach($procName in $aiProcesses){ + taskkill /im $procName /f *>$null +} + #disable ai registry keys Write-Status -msg 'Disabling Copilot and Recall...' #set for local machine and current user to be sure