PowerShell Logo Small

Write-Verbose



This is the built-in help made by Microsoft for the command 'Write-Verbose', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' 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> [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.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 deliver 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/p/?linkid=294032
Write-Error
Write-Warning
about_Preference_Variables

REMARKS

<

Examples


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

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



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 variable.






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

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



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.