From 7371507fd4a0a053fb57518e678102d714680380 Mon Sep 17 00:00:00 2001 From: Yorick Date: Tue, 18 Oct 2016 09:53:15 +0200 Subject: [PATCH] Remove an invisible caracter on Windows (fucking encoding) --- cleanW10.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }