Add NoRestart

This commit is contained in:
zoicware
2024-12-12 17:51:05 -05:00
committed by GitHub
parent a9279119d0
commit 2ea5819069

View File

@@ -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