Recall Optional Feature Check
This commit is contained in:
@@ -356,15 +356,18 @@ foreach ($path in $eolKeys) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#remove recall optional feature
|
#remove recall optional feature
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
Write-Status -msg 'Removing Recall Optional Feature...'
|
||||||
try {
|
$state = (Get-WindowsOptionalFeature -Online -FeatureName 'Recall').State
|
||||||
Write-Status -msg 'Removing Recall Optional Feature...'
|
if ($state -and $state -ne 'DisabledWithPayloadRemoved') {
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
try {
|
||||||
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -NoRestart -ErrorAction Stop *>$null
|
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -NoRestart -ErrorAction Stop *>$null
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
#hide error
|
#hide error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Write-Status -msg 'Removing Appx Package Files...'
|
Write-Status -msg 'Removing Appx Package Files...'
|
||||||
#-----------------------------------------------------------------------remove files
|
#-----------------------------------------------------------------------remove files
|
||||||
|
|||||||
Reference in New Issue
Block a user