Change Verbose default color

1.6k views Asked by At

The default color of verbose output (e.g. Write-Verbose or -Verbose switch) in Powershell is yellow. This makes it look like warnings, although it's non-critical.

How can I change the default color of verbose output?

1

There are 1 answers

0
marsze On BEST ANSWER

This is possible hosing the $Host automatic variable.

In your $Profile add:

$Host.PrivateData.VerboseForegroundColor = 'Cyan'

(You can use any valid ConsoleColor.)