PowerShell Logo Small

Write-Verbose



This is the built-in help made by Microsoft for the command 'Write-Verbose', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Writes text to the verbose message stream.

SYNTAX


Write-Verbose [-Message] <string> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Write-Verbose cmdlet writes text to the verbose message stream in Windows PowerShell. Typically, the verbose message stream is used to delive
r information about command processing that is used for debugging a command.

By default, the verbose message stream is not displayed, but you can display it by changing the value of the $VerbosePreference variable or using
the Verbose common parameter in any command.



<

RELATED LINKS

Online version: http://go.microsoft.com/fwlink/?LinkID=113429
Write-Error
Write-Warning
about_Preference_Variables

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>Write-Verbose -message "Searching the Application Event Log."

C:\PS> Write-Verbose -message "Searching the Application Event Log." -verbose



Description
-----------
These commands use the Write-Verbose cmdlet to display a status message. By default, the message is not displayed.

The second command uses the Verbose common parameter, which displays any verbose messages, regardless of the value of the $VerbosePreference vari
able.








-------------------------- EXAMPLE 2 --------------------------

C:\PS>$VerbosePreference = "Continue"

C:\PS> Write-Verbose "Copying file $filename"



Description
-----------
These commands use the Write-Verbose cmdlet to display a status message. By default, the message is not displayed.

The first command assigns a value of "Continue" to the $VerbosePreference preference variable. The default value, "SilentlyContinue", suppresses
verbose messages.

The second command writes a verbose message.