Winscript provides granular controls to remove Microsoft’s AI integrations from Windows 11. You can hide UI elements, remove app packages, disable platform features via DISM, and clean up leftover files — independently or together.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flick9000/winscript/llms.txt
Use this file to discover all available pages before exploring further.
Hide Copilot Button in Explorer
Hides the Copilot button from the Windows Explorer toolbar without fully removing the Copilot feature. This is the least invasive option and can be reversed by re-enabling the button through Windows Settings.Remove AI Packages
Removes all AI-related AppX packages from Windows, including both per-user and provisioned (system-wide) installations. The following packages are targeted:Microsoft.Windows.Ai.Copilot.ProviderMicrosoft.CopilotMicrosoft.WindowsAiFoundationMicrosoft.Windows.Recall
Remove Copilot
Performs a full removal of the Windows Copilot feature. In addition to uninstalling theMicrosoft.CoPilot AppX package, this option applies multiple registry entries to turn off Copilot at both the machine and user policy level, suppress the Copilot button in Explorer, prevent the Copilot panel from auto-opening on large screens, block the Copilot shell extension, and mark Copilot as unavailable for the current geographic region.
This option sets registry keys under both
HKLM (machine-wide) and HKCU (current user) to ensure Copilot cannot be re-enabled through the normal Settings UI.Remove Recall
Disables the Windows Recall feature, which continuously takes screenshots of your activity to build a searchable AI timeline. Removal is performed in three steps: theRecall optional feature is disabled via DISM, all scheduled tasks under \Microsoft\Windows\WindowsAI\ and \Microsoft\Windows\Recall\ are unregistered, and a Group Policy registry key is set to disable AI data analysis.
The
DisableAIDataAnalysis registry value is set under HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI to prevent Recall from collecting data even if the feature is partially re-enabled through a future Windows Update.Disable Notepad AI
Disables AI-powered writing features in the Windows Notepad app, including the Rewrite button (powered by Copilot) and other AI-assisted text features. Two registry keys are applied: one machine-wide policy that disables all AI features in Notepad, and one user-level key that hides the Rewrite button from the toolbar.Remove AI Files
Removes leftover AI-related files and folders from the Windows filesystem. The script scans the following paths and removes any matching directories:$env:ProgramFiles\WindowsApps\Microsoft.Copilot*$env:ProgramFiles\WindowsApps\Microsoft.Windows.Ai*$env:LocalAppData\Packages\Microsoft.Copilot*$env:LocalAppData\Packages\Microsoft.Windows.Ai*$env:SystemRoot\SystemApps\Microsoft.Windows.Copilot*
This step is most effective when run after Remove AI Packages and Remove Copilot, as those steps deregister the packages first. Running this step alone may remove files that Windows will attempt to restore on the next update.