From 0154b749a4a7b39f513e5dd8eed5dec990b59927 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 12 May 2026 11:02:26 -0700 Subject: [PATCH] Added WPFTweaksWindowsAI (#4461) * Added WPFTweaksWindowsAI * Update tweaks.json --- config/tweaks.json | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index 5e269556..a4b6deec 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -961,32 +961,45 @@ ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/storage" }, - "WPFTweaksRemoveCopilot": { - "Content": "Microsoft Copilot - Disable", - "Description": "Removes Copilot AppXPackages and related ai packages", + "WPFTweaksWindowsAI": { + "Content": "Windows AI - Disable", + "Description": "Removes or disables all ai features and 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": "" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\WindowsNotepad", + "Name": "DisableAIFeatures", + "Value": 1, + "Type": "DWord", + "OriginalValue": "" + } + ], "InvokeScript": [ " - Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers - Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers - $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 + Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers Remove-AppxPackage $Appx - Write-Host \"Copilot Removed\" + Set-Service -Name WSAIFabricSvc -StartupType Disabled + Disable-WindowsOptionalFeature -FeatureName Recall -Online + + Write-Host \"Windows AI Disabled\" " ], - "UndoScript": [ - " - Write-Host \"Installing Copilot...\" - winget install --name Copilot --source msstore --accept-package-agreements --accept-source-agreements --silent - " - ], - "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removecopilot" + "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/WindowsAI" }, "WPFTweaksWPBT": { "Content": "Windows Platform Binary Table (WPBT) - Disable",