PowerTip: Use PowerShell to Create Color Output from Commands
Summary: Learn to use the Write-Host PowerShell cmdlet to create color output from commands. Someone told me the Write-Host cmdlet could create color output. Can you give me some samples of acceptable syntax?a. Write-Host -ForegroundColor 12 "hi"b. Write-Host -ForegroundColor 12 "hi" -BackgroundColor whitec. Write-Host -ForegroundColor blue -BackgroundColor whited. Write-Host -ForegroundColor 2 hie. Write-Host -backgroundcolor 2 hif. Writ... More >
Summary: Learn to use the Write-Host PowerShell cmdlet to create color output from commands. Someone told me the Write-Host cmdlet could create color output. Can you give me some samples of acceptable syntax?a. Write-Host -ForegroundColor 12 "hi"b. Write-Host -ForegroundColor 12 "hi" -BackgroundColor whitec. Write-Host -ForegroundColor blue -BackgroundColor whited. Write-Host -ForegroundColor 2 hie. Write-Host -backgroundcolor 2 hif. Writ... More >
.jpg)
.jpg)
.jpg)