Reworked text output
This commit is contained in:
parent
576851de0c
commit
d6ec836f9d
1 changed files with 5 additions and 5 deletions
10
cleanW10.ps1
10
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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue