Color Week: Changing Error Message Colors

by Sep 16, 2016

This week we are looking at how you can change coloring both in the PowerShell console and PowerShell ISE so you can fine tune your PowerShell environment.

PowerShell uses predefined colors for errors, warnings, verbose messages, and other output. These colors can be changed, too.

This would change error messages to red text with white background. This color scheme is much better to read, especially on presentations:

 
$host.PrivateData.ErrorBackgroundColor="White"
$host.PrivateData.ErrorForegroundColor='Red' 
 

Twitter This Tip! ReTweet this Tip!