Write-Verbose

Write a string to the host's verbose display.

Syntax
      Write-Verbose [-message] string [CommonParameters]

Key
   -message string
       The message to display.
       {may be piped}

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

The action of Write-verbose is dependent on the value of $VerbosePreference
If $verbosePreference = "Continue" powershell will show the message.
If $verbosePreference = "SilentlyContinue" powershell will not show the message.
If $WarningPreference = "Stop" powershell will show the message and then halt.
If $WarningPreference = "Inquire" powershell will prompt the user.

Example

Write a message:

PS C:\>$VerbosePreference = "Continue"
PS C:\>Write-Verbose "The quick brown fox."

“Inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination” - Benjamin Disraeli

Related Powershell Commands:

Write-Debug - Write a debug message to the host display
Write-Error - Write an object to the error pipeline.
Write-Host - Display objects through the host user interface
Write-Output - Write an object to the pipeline
Write-Progress - Display a progress bar
Write-Warning - Write a warning message



Back to the Top

© Copyright SS64.com 1999-2010
Some rights reserved