add compact command

This commit is contained in:
zoicware
2025-12-08 15:57:08 -05:00
committed by GitHub
parent 97b64eb4f5
commit e2f0c383ee
2 changed files with 6 additions and 1 deletions

View File

@@ -352,7 +352,7 @@ function Disable-Registry-Keys {
}
if (!$revert) {
#remove conversational agent service (used to be used for cortana, prob going to be updated for new ai agents and copilot)
$aarSVCName = (Get-Service | Where-Object { $_.name -like '*aarsvc*' }).Name
$aarSVCName = (Get-Service -ErrorAction SilentlyContinue | Where-Object { $_.name -like '*aarsvc*' }).Name
if ($aarSVCName) {
if ($backup) {