Skip to main content

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.

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.

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.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d 0 /f

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.Provider
  • Microsoft.Copilot
  • Microsoft.WindowsAiFoundation
  • Microsoft.Windows.Recall
Each package is removed for all users. Provisioned packages are also removed so they are not reinstalled for new user accounts.
$aiPackages = @('Microsoft.Windows.Ai.Copilot.Provider','Microsoft.Copilot','Microsoft.WindowsAiFoundation','Microsoft.Windows.Recall'); foreach ($package in $aiPackages) { try { $removed = $false; $appxPackages = Get-AppxPackage -Name $package -AllUsers; if ($appxPackages) { $appxPackages | Remove-AppxPackage -AllUsers; $removed = $true; } $provisionedPackages = Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $package; if ($provisionedPackages) { $provisionedPackages | Remove-AppxProvisionedPackage -Online; $removed = $true; } if ($removed) { Write-Host 'Removed: ' $package; } } catch { Write-Host 'Could not remove: ' $package -ForegroundColor Red; } }

Remove Copilot

Performs a full removal of the Windows Copilot feature. In addition to uninstalling the Microsoft.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.
Get-AppxPackage "Microsoft.CoPilot" | Remove-AppxPackage
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t "REG_DWORD" /d "1" /f
reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t "REG_DWORD" /d "1" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "AutoOpenCopilotLargeScreens" /t "REG_DWORD" /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t "REG_DWORD" /d "0" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\Shell\Copilot" /v "CopilotDisabledReason" /t "REG_SZ" /d "IsEnabledForGeographicRegionFailed" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsCopilot" /v "AllowCopilotRuntime" /t "REG_DWORD" /d "0" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{CB3B0003-8088-4EDE-8769-8B354AB2FF8C}" /t "REG_SZ" /d " " /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\Shell\Copilot" /v "IsCopilotAvailable" /t "REG_DWORD" /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat" /v "IsUserEligible" /t "REG_DWORD" /d "0" /f

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: the Recall 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.
DISM /Online /Disable-Feature /NoRestart /FeatureName:Recall | Out-Null; if ($LASTEXITCODE -eq 0) { Write-Host "Successfully removed the feature: Recall" } else { Write-Host "Feature not found: Recall" }
$recallTasks = @('\Microsoft\Windows\WindowsAI\*', '\Microsoft\Windows\Recall\*'); foreach ($taskPath in $recallTasks) { try { $tasks = Get-ScheduledTask -TaskPath $taskPath -ErrorAction SilentlyContinue; if ($tasks) { $tasks | Unregister-ScheduledTask -Confirm:$false -ErrorAction Stop; $taskCount = ($tasks | Measure-Object).Count; Write-Host "Removed $taskCount task(s) from: $taskPath" -ForegroundColor Green; } } catch { Write-Host "Could not remove tasks from: $taskPath" -ForegroundColor Red; } }
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d 1 /f

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.
reg add "HKLM\Software\Policies\WindowsNotepad" /v "DisableAIFeatures" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Notepad" /v "ShowRewriteButton" /t REG_DWORD /d 0 /f

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.
$aiPaths = @("$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*"); foreach ($path in $aiPaths) { if (Test-Path $path) { try { Remove-Item -Path $path -Recurse -Force; Write-Host "Removed: $path" -ForegroundColor Green } catch { Write-Host "Could not remove: $path" -ForegroundColor Red } } }

Build docs developers (and LLMs) love