PowerShell – Console Colours

Want a super fast way to enumerate all the available console colours from PowerShell? Try this…

ForEach ($colour in [System.Enum]::GetNames("System.ConsoleColor")) { Write-Host $colour -ForegroundColor $colour }

consolecolor

Short but sweet, enjoy!

About the author