see all console colors:

[enum]::GetValues([System.ConsoleColor]) | Foreach-Object {Write-Host $_ -ForegroundColor $_}
  • Black
  • DarkBlue
  • DarkGreen
  • DarkCyan
  • DarkRed
  • DarkMagenta
  • DarkYellow
  • Gray
  • DarkGray
  • Blue
  • Green
  • Cyan
  • Red
  • Magenta
  • Yellow
  • White

Or to try every possible foreground/background combo:

$colors = [enum]::GetValues([System.ConsoleColor])
foreach( $fcolor in $colors )
{
    foreach( $bcolor in $colors )
    {
        Write-Host -NoNewLine "$fcolor/$bcolor "-ForegroundColor $fcolor -BackgroundColor $bcolor
    }
}

Source

results matching ""

    No results matching ""