remove ai stuff from update checks

This commit is contained in:
zoicware
2025-10-16 21:58:58 -04:00
committed by GitHub
parent 5a87469b0d
commit bc4d9f5e21

View File

@@ -1185,6 +1185,13 @@ function Remove-AI-Files {
}
Remove-Item $uri -Recurse -Force -ErrorAction SilentlyContinue
}
#remove ai app checks in updates (not sure if this does anything)
Reg.exe delete 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages\Components' /v 'AIX' /f *>$null
Reg.exe delete 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages\Components' /v 'CopilotNudges' /f *>$null
Reg.exe delete 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages\Components' /v 'AIContext' /f *>$null
$command = "Reg.exe delete 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages\MicrosoftWindows.Client.CoreAI_cw5n1h2txyewy' /f"
Run-Trusted -command $command -psversion $psversion
}
}