Kill AI Processes

This commit is contained in:
zoicware
2025-06-18 14:53:31 -04:00
committed by GitHub
parent e8df741153
commit d7451269f7

View File

@@ -54,6 +54,19 @@ function Write-Status {
Write-Host '~ ~ ~ Remove Windows AI by @zoicware ~ ~ ~' -ForegroundColor DarkCyan 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 #disable ai registry keys
Write-Status -msg 'Disabling Copilot and Recall...' Write-Status -msg 'Disabling Copilot and Recall...'
#set for local machine and current user to be sure #set for local machine and current user to be sure