Files
winutil/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md
T

33 lines
1.1 KiB
Markdown
Raw Normal View History

---
2026-04-17 09:04:35 -05:00
title: "Microsoft Copilot - Disable"
description: ""
---
2026-02-18 12:37:09 -06:00
2026-04-30 12:46:57 -05:00
```json {filename="config/tweaks.json",linenos=inline,linenostart=964}
"WPFTweaksRemoveCopilot": {
2026-04-17 09:04:35 -05:00
"Content": "Microsoft Copilot - Disable",
2026-04-07 10:46:13 -05:00
"Description": "Removes Copilot AppXPackages and related ai packages",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"InvokeScript": [
"
Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers
Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
2026-02-18 12:37:09 -06:00
$Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName
$Sid = (Get-LocalUser $Env:UserName).Sid.Value
2026-04-07 13:07:36 -05:00
2026-02-18 12:37:09 -06:00
New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
Remove-AppxPackage $Appx
2026-04-07 10:46:13 -05:00
Write-Host \"Copilot Removed\"
"
],
"UndoScript": [
"
2026-04-07 10:46:13 -05:00
Write-Host \"Installing Copilot...\"
winget install --name Copilot --source msstore --accept-package-agreements --accept-source-agreements --silent
"
],
```