mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2026-01-11 02:04:44 +01:00
no longer need to remove eol keys
This commit is contained in:
@@ -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
|
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
|
## undo eol unblock trick to prevent latest cumulative update (LCU) failing
|
||||||
$eolPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife'
|
# $eolPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife'
|
||||||
$eolKeys = (Get-ChildItem $eolPath).Name
|
# $eolKeys = (Get-ChildItem $eolPath).Name
|
||||||
foreach ($path in $eolKeys) {
|
# foreach ($path in $eolKeys) {
|
||||||
Remove-Item "registry::$path" -Recurse -Force -ErrorAction SilentlyContinue
|
# Remove-Item "registry::$path" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user