Disable Recall Optional Feature

This commit is contained in:
zoicware
2024-10-09 20:55:31 -04:00
committed by GitHub
parent b70e969d21
commit 90f335e6af

View File

@@ -82,6 +82,13 @@ foreach ($choice in $aipackages) {
## undo eol unblock trick to prevent latest cumulative update (LCU) failing ## undo eol unblock trick to prevent latest cumulative update (LCU) failing
foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\EndOfLife\$sid\$PackageName" -force -ErrorAction SilentlyContinue >'' } } foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\EndOfLife\$sid\$PackageName" -force -ErrorAction SilentlyContinue >'' } }
#remove recall optional feature
try {
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop
}
catch {
#hide error
}
Write-Host 'Removing Package Files...' Write-Host 'Removing Package Files...'