From a31c9cb235820564d16fe98d5a095459324e5f4c Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Thu, 15 Jan 2026 01:01:09 +0200 Subject: [PATCH] Update-WPFTweaksRemoveCopilot (#3907) * Update tweaks.json * Update tweaks.json * Update tweaks.json * Update config/tweaks.json Co-authored-by: Yuki <65764619+YukiNagat0@users.noreply.github.com> * Remove comment on EOL trick for AppxPackages Removed unnecessary comment about tricking Windows for package uninstallation. * Fix escape characters in registry path --------- Co-authored-by: Chris Titus Co-authored-by: Yuki <65764619+YukiNagat0@users.noreply.github.com> --- config/tweaks.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/tweaks.json b/config/tweaks.json index 6902ede5..3377d802 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2041,6 +2041,12 @@ Write-Host \"Remove Copilot\" 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 + Remove-AppxPackage $Appx " ], "UndoScript": [