From 6854c9b176ecfdaab1009ab66e3212aa0c22c49f Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:00:23 -0500 Subject: [PATCH] remove copilot update in edgeupdate dir --- RemoveWindowsAi.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index b9f7c80..a5823f3 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -1410,6 +1410,18 @@ function Remove-AI-Files { if ($fullPath -ne $null) { Remove-Item -Path $fullPath -Recurse -Force -ErrorAction SilentlyContinue } } + + #remove copilot update in edge update dir + $dir = "${env:ProgramFiles(x86)}\Microsoft\EdgeUpdate" + if (Test-Path $dir) { + $paths = Get-ChildItem $dir -Recurse -Filter '*CopilotUpdate.exe*' + foreach ($path in $paths) { + if (Test-Path $path.FullName) { + Remove-Item $path.FullName -Force + } + } + } + Reg.exe delete 'HKLM\SOFTWARE\Microsoft\EdgeUpdate' /v 'CopilotUpdatePath' /f *>$null #remove additional installers $inboxapps = 'C:\Windows\InboxApps'