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

@@ -58,6 +58,11 @@ The current 25H2 build of Windows 11 and future builds will include increasingly
```PowerShell
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1")))
```
### Compact Command:
##### Link shortened using open source link shortener: https://kutt.it/
```PowerShell
& ([scriptblock]::Create((irm 'https://kutt.it/RWAI')))
```
<details>
<summary>Click to View UI</summary>

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) {