Set background color other then standard one in Powershell

Question:

I can change console background color by script:

but in this case I’m limited to preset number of defined colors and unfortunately one I’m looking for is not here. There is option to pick color from console GUI (right click on top Windows PowerShell bar->properties->Colors). Unfortunately (again) only BackGroundColor and ForeGroundColor can be changed there, no way to change one of $host.privatedata colors there.

Is there possibility to put hex coded color via script somehow?

Answer:

there is a registry hack here : http://stackingcode.com/blog/2011/11/14/zenburn-powershell

Source:

Set background color other then standard one in Powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply