mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2025-12-17 07:06:29 +01:00
remove copilot update in edgeupdate dir
This commit is contained in:
@@ -1411,6 +1411,18 @@ function Remove-AI-Files {
|
||||
}
|
||||
|
||||
|
||||
#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'
|
||||
$installers = Get-ChildItem -Path $inboxapps -Filter '*Copilot*'
|
||||
|
||||
Reference in New Issue
Block a user