Hide Output
This commit is contained in:
@@ -83,8 +83,9 @@ foreach ($choice in $aipackages) {
|
|||||||
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
|
#remove recall optional feature
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
try {
|
try {
|
||||||
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop
|
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop | Out-Null
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
#hide error
|
#hide error
|
||||||
|
|||||||
Reference in New Issue
Block a user