Windows AI - Disable And Remove
config/tweaks.json
887 "WPFTweaksWindowsAI": {
888 "Content": "Windows AI - Disable And Remove",
889 "Description": "Removes and disables all AI features/packages",
890 "category": "z__Advanced Tweaks - CAUTION",
891 "panel": "1",
892 "registry": [
893 {
894 "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
895 "Name": "SettingsPageVisibility",
896 "Value": "hide:aicomponents",
897 "Type": "String",
898 "OriginalValue": "<RemoveEntry>"
899 },
900 {
901 "Path": "HKLM:\\SOFTWARE\\Policies\\WindowsNotepad",
902 "Name": "DisableAIFeatures",
903 "Value": "1",
904 "Type": "DWord",
905 "OriginalValue": "<RemoveEntry>"
906 }
907 ],
908 "InvokeScript": [
909 "
910 $Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName
911 $Sid = (Get-LocalUser $Env:UserName).Sid.Value
912
913 New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
914
915 Get-AppxPackage -AllUsers \"*Copilot*\" | Remove-AppxPackage -AllUsers
916 winget uninstall -e --name \"Copilot\" --silent --force --accept-source-agreements 2>$null
917 Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
918
919 if ($Appx) {
920 Remove-AppxPackage $Appx
921 }
922
923 Set-Service -Name WSAIFabricSvc -StartupType Disabled
924 Disable-WindowsOptionalFeature -FeatureName Recall -Online -NoRestart
925
926 Write-Host \"Windows AI Disabled\"
927 "
928 ],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.