From 97a67026f072e968ab90aa119a6e89eb83630ef8 Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Fri, 19 Dec 2025 18:54:02 -0500 Subject: [PATCH] no longer need to remove eol keys --- RemoveWindowsAi.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index b7a8603..ef73dca 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -1165,11 +1165,11 @@ foreach ($choice in $aipackages) { Reg.exe add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx\RemoveDefaultMicrosoftStorePackages\Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe' /v 'RemovePackage' /t REG_DWORD /d '1' /f *>$null ## undo eol unblock trick to prevent latest cumulative update (LCU) failing - $eolPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife' - $eolKeys = (Get-ChildItem $eolPath).Name - foreach ($path in $eolKeys) { - Remove-Item "registry::$path" -Recurse -Force -ErrorAction SilentlyContinue - } + # $eolPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife' + # $eolKeys = (Get-ChildItem $eolPath).Name + # foreach ($path in $eolKeys) { + # Remove-Item "registry::$path" -Recurse -Force -ErrorAction SilentlyContinue + # } } }