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 best solutions below

0
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.)