Search code examples
powershellverbose

Change Verbose default color


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?


Solution

  • This is possible hosing the $Host automatic variable.

    In your $Profile add:

    $Host.PrivateData.VerboseForegroundColor = 'Cyan'
    

    (You can use any valid ConsoleColor.)