diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 53117e9..6327183 100644 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -106,11 +106,11 @@ function modify_shitty_reg_value { return } catch { - Write-Host -ForegroundColor Red "error " + Write-Host -ForegroundColor Red "error" Write-Host $Error[0] return } - Write-host -ForegroundColor Green "done " + Write-host -ForegroundColor Green "done" } # Function to remove shitty prog from shitty win @@ -118,7 +118,7 @@ function modify_shitty_reg_value { # $name : Feature name function disable_shitty_feature { param ($name) - Write-Host -NoNewline -ForegroundColor White "Disable $name feature :" + Write-Host -NoNewline -ForegroundColor White "Disable $name feature : " $requestInstall = dism /online /Get-FeatureInfo /FeatureName:$name /English $isInstalled = $requestInstall | Select-String "state" If ($isInstalled -match "Enable") { @@ -129,10 +129,10 @@ function disable_shitty_feature { Write-Host -ForegroundColor Red "error" Return } - Write-Host -ForegroundColor Green "done " + Write-Host -ForegroundColor Green "done" } else { - Write-Host -ForegroundColor Yellow "already disable " + Write-Host -ForegroundColor Yellow "already disable" } }