Disabling Windows Copilot now also removes the new Microsoft.Copilot app #124

This commit is contained in:
Raphire
2024-09-04 13:07:11 +02:00
parent c3638553f3
commit 25bb8364c3
2 changed files with 8 additions and 3 deletions

View File

@@ -98,6 +98,7 @@ XING
# want to UNINSTALL by default. #
# ------------------------------------------------------------------------------------------------------------- #
#Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search)
#Microsoft.Copilot # New Windows Copilot app
#Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area)
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters
#Microsoft.MSPaint # Paint 3D

View File

@@ -358,7 +358,7 @@ function RemoveApps {
# Remove installed app for all existing users
if ($WinVersion -ge 22000){
# Windows 11 build 22000 or later
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction Continue
}
else {
# Windows 10
@@ -928,7 +928,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP
Write-Output ""
if ($( Read-Host -Prompt "Disable Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
AddParameter 'DisableCopilot' 'Disable Windows copilot'
AddParameter 'DisableCopilot' 'Disable Windows Copilot'
}
Write-Output ""
@@ -1299,7 +1299,11 @@ else {
continue
}
'DisableCopilot' {
RegImport "> Disabling Windows copilot..." "Disable_Copilot.reg"
RegImport "> Disabling & removing Windows Copilot..." "Disable_Copilot.reg"
# Also remove the app package for bing search
$appsList = 'Microsoft.Copilot'
RemoveApps $appsList
continue
}
'DisableRecall' {