From 299b68e82de792ffb578ce2d891c4891785f86ac Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 2 Jul 2026 13:28:57 -0500 Subject: [PATCH] Added winget uninstall of Copilot. Line 968 Remove-AppxPackage is not working when Copilot is installed back after Windows Updates and the only option that works is using winget (#4797) Co-authored-by: gepardjaro <192244662+gepardjaro@users.noreply.github.com> --- config/tweaks.json | 1 + 1 file changed, 1 insertion(+) diff --git a/config/tweaks.json b/config/tweaks.json index b39c5446..8b7fdbe0 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -913,6 +913,7 @@ 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) {