Remove an invisible caracter on Windows (fucking encoding)

This commit is contained in:
Yorick 2016-10-18 09:53:15 +02:00
parent 8832083dc5
commit 7371507fd4

View file

@ -108,9 +108,9 @@ function disableShitty {
$isInstalled = $requestInstall | Select-String "state" $isInstalled = $requestInstall | Select-String "state"
If ($isInstalled -match "Enable") { If ($isInstalled -match "Enable") {
try { 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" Write-Host -ForegroundColor Red " Error"
Return Return
} }