Skip to content

Windows AI - Disable

config/tweaks.json
949  "WPFTweaksWindowsAI": {
950    "Content": "Windows AI - Disable",
951    "Description": "Removes or disables all ai features and packages",
952    "category": "z__Advanced Tweaks - CAUTION",
953    "panel": "1",
954    "registry": [
955      {
956        "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
957        "Name": "SettingsPageVisibility",
958        "Value": "hide:aicomponents",
959        "Type": "String",
960        "OriginalValue": "<RemoveEntry>"
961      },
962      {
963        "Path": "HKLM:\\SOFTWARE\\Policies\\WindowsNotepad",
964        "Name": "DisableAIFeatures",
965        "Value": "1",
966        "Type": "DWord",
967        "OriginalValue": "<RemoveEntry>"
968      }
969    ],
970    "InvokeScript": [
971      "
972      $Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName
973      $Sid = (Get-LocalUser $Env:UserName).Sid.Value
974
975      New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
976
977      Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers
978      Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
979      Remove-AppxPackage $Appx
980
981      Set-Service -Name WSAIFabricSvc -StartupType Disabled
982      Disable-WindowsOptionalFeature -FeatureName Recall -Online -NoRestart
983
984      Write-Host \"Windows AI Disabled\"
985      "
986    ],

Registry Changes

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.