An Engineers Notebook

PowerShell | How to change the colour of the error message text

If you want to change the colour of the error text in PowerShell you can do it like this:

$host.PrivateData.ErrorForegroundColor = 'Green'

Leave a Reply

Your email address will not be published.