PowerShell – Console Colours

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

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!

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.