gitmyhub

RemoveWindowsAI

PowerShell ★ 12k updated 2d ago

Force Remove Copilot, Recall and More in Windows 11

A PowerShell script that disables and removes Microsoft's AI features from Windows 11 in bulk, including Copilot, Recall, and AI enhancements in Photos, Paint, and Notepad.

PowerShellsetup: easycomplexity 2/5

RemoveWindowsAI is a PowerShell script that removes or disables the AI features Microsoft ships with Windows 11. Starting with the 25H2 build, Windows 11 includes features like Copilot, Recall, input tracking, and various AI enhancements scattered across built-in apps. This script targets all of them and gives users a way to opt out in bulk.

The script works through several layers. First, it modifies Windows Registry keys to disable individual AI features, including Copilot (both the system integration and the Edge browser version), Recall (Microsoft's screenshot-and-search memory feature), voice effects, AI in the Settings search, AI features in Photos, Paint, Notepad, and Snipping Tool, gaming Copilot, and Copilot in Office apps. Second, it removes the actual software packages: AI-related Appx packages (including ones marked as non-removable) and packages stored in the CBS (Component-Based Servicing) store, which is the low-level Windows component registry. Third, it installs a custom Windows Update blocker to prevent the AI packages from being reinstalled during future updates.

A scheduled task is also created to check after each Windows Update and remove any newly added AI features. There is a backup mode that records what was changed so you can revert later.

The script runs through a graphical PowerShell console UI, but also supports command-line flags for non-interactive or automated use. It must be run as Administrator in Windows PowerShell 5.1, not PowerShell 7. Some antivirus programs flag it as malicious, which the README describes as a false positive common to system-modification scripts.

Classic versions of Notepad, Paint, Snipping Tool, and Photos can optionally be reinstalled to replace the AI-enhanced versions.

Where it fits