From e2f0c383ee3ccccb4b99409a54bf52fcaeb0d753 Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:57:08 -0500 Subject: [PATCH] add compact command --- README.md | 5 +++++ RemoveWindowsAi.ps1 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 455f31c..8eab512 100644 --- a/README.md +++ b/README.md @@ -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'))) + ```
Click to View UI diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index a1fc39d..d348e54 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -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) {