Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Change Color of PowerShell Errors

$
0
0

Summary: Learn how to change the color of Windows PowerShell errors.

Hey, Scripting Guy! Question How can I change the color of Windows PowerShell errors in the Windows PowerShell console?

Hey, Scripting Guy! Answer Use $host.PrivateData and supply a new value for ErrorForegroundColor, for example:

$Host.PrivateData.ErrorForegroundColor = 'white'


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>