PS D:\scripts> get-help write-verbose
NAME
Write-Verbose
SYNOPSIS
Writes a string to the verbose display of the host.
SYNTAX
Write-Verbose [-message] []
DETAILED DESCRIPTION
Writes a string to the verbose display of the host. The value of the
$Verbo
sePreference variable determines whether or not the string is
displayed in
the console window. To see the value of the variable, type
$VerbosePreferen
ce. Valid values are: SilentlyContinue, Stop, Continue and Inquire.
To set
the value of the variable in the current session, type
$VerbosePreference =
"". If $VerbosePreference is set to SilentlyContinue,
running Write
-Verbose does not display anything to the console. For all other
values of
$verbosepreference, the cmdlet displays its message to the console
and eith
er continues, stops or asks the user whether it should continue.
Using the Write-Verbose cmdlet to display detailed information in a
script
lets the users of the script control whether or not to display that
detaile
d information by setting the value of the $VerbosePreference
variable.
RELATED LINKS
Write-Host
Write-Error
Write-Output
Write-Debug
Write-Progress
Write-Warning
REMARKS
For more information, type: "get-help Write-Verbose -detailed".
For technical information, type: "get-help Write-Verbose -full".