diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 363db9c..d9c45ed 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -108,9 +108,9 @@ function disableShitty { $isInstalled = $requestInstall | Select-String "state" If ($isInstalled -match "Enable") { try { - Dism /online /Disable-Feature /FeatureName:$name /NoRestart| Out-Null + Dism /online /Disable-Feature /FeatureName:$name /NoRestart | Out-Null } - catch { + catch { Write-Host -ForegroundColor Red " Error" Return }