Write out all the available colors Write-Host can use in one line.

System.ConcoleColor].GetEnumValues() | ForEach-Object { Write-host $_ -ForegroundColor $_ }

Also, you can find some great stuff here from the ScriptingGuy in Use .NET Classes to Configure the Windows PowerShell Console.

Leave a Reply