From 4b7df29068c183703e8475d7309d15fcf191982d Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 15 Oct 2025 18:06:08 -0400 Subject: [PATCH] ensure cbs packages get uninstalled --- RemoveWindowsAi.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index c21097e..7e4436e 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -826,6 +826,7 @@ function Remove-AI-CBS-Packages { $value = Get-ItemPropertyValue "registry::$($_.Name)" -Name Visibility if ($value -eq 2 -and $_.PSChildName -like '*AIX*' -or $_.PSChildName -like '*Recall*' -or $_.PSChildName -like '*Copilot*' -or $_.PSChildName -like '*CoreAI*') { Set-ItemProperty "registry::$($_.Name)" -Name Visibility -Value 1 -Force + New-ItemProperty "registry::$($_.Name)" -Name DefVis -PropertyType DWord -Value 2 -Force Remove-Item "registry::$($_.Name)\Owners" -Force -ErrorAction SilentlyContinue Remove-Item "registry::$($_.Name)\Updates" -Force -ErrorAction SilentlyContinue try {