PowerShell – Console Colours

2017-12-08T14:23:54+00:00 June 12th, 2014|PowerShell|

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!