Skip to content

Search guides, tweaks, features, and FAQs.

Code ReferenceTweaks Referencez--Advanced-Tweaks---CAUTION

Windows AI - Disable And Remove

config/tweaks.json
"WPFTweaksWindowsAI": {
"Content": "Windows AI - Disable And Remove",
"Description": "Removes and disables all AI features/packages",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"registry": [
{
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
"Name": "SettingsPageVisibility",
"Value": "hide:aicomponents",
"Type": "String",
"OriginalValue": "<RemoveEntry>"
},
{
"Path": "HKLM:\\SOFTWARE\\Policies\\WindowsNotepad",
"Name": "DisableAIFeatures",
"Value": "1",
"Type": "DWord",
"OriginalValue": "<RemoveEntry>"
}
],
"InvokeScript": [
"
$Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName
$Sid = (Get-LocalUser $Env:UserName).Sid.Value
New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
Get-AppxPackage -AllUsers \"*Copilot*\" | Remove-AppxPackage -AllUsers
winget uninstall -e --name \"Copilot\" --silent --force --accept-source-agreements 2>$null
Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
if ($Appx) {
Remove-AppxPackage $Appx
}
# WSAIFabricSvc only exists on some Windows 11 builds; without the guard a
# missing service aborts the rest of this script block and Recall stays enabled
if (Get-Service -Name WSAIFabricSvc -ErrorAction SilentlyContinue) {
Set-Service -Name WSAIFabricSvc -StartupType Disabled
}
# Store/MSIX PowerShell 7 can hang or fail COM activation in DISM.
$RecallCommand = {
Disable-WindowsOptionalFeature -FeatureName Recall -Online -NoRestart -ErrorAction Stop | Out-Null
}
$RecallOutput = powershell.exe -NoProfile -NonInteractive -Command $RecallCommand 2>&1
if ($LASTEXITCODE -ne 0) {
throw \"Failed to disable Recall (exit code $LASTEXITCODE): $(($RecallOutput | Out-String).Trim())\"
}
$RecallOutput | ForEach-Object { Write-Host $_ }
Write-Host \"Windows AI Disabled\"
"
],
}

Applications and System Components store and retrieve configuration data to modify Windows settings, so we can use the registry to change many settings in one place.

You can find information about the registry on Wikipedia and Microsoft’s Website.