Add NoRestart
This commit is contained in:
@@ -177,7 +177,7 @@ foreach ($sid in $users) { foreach ($PackageName in $eol) { Remove-Item "$store\
|
|||||||
#remove recall optional feature
|
#remove recall optional feature
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
try {
|
try {
|
||||||
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction Stop *>$null
|
Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -NoRestart -ErrorAction Stop *>$null
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
#hide error
|
#hide error
|
||||||
|
|||||||
Reference in New Issue
Block a user