Write-Verbose - PowerShell command help and examples

Writes text to the verbose message stream. (Write-Verbose)


NAME
Write-Verbose
SYNOPSIS
Writes text to the verbose message stream.
SYNTAX
Write-Verbose [-Message] <string> [<CommonParameters>]
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.
PARAMETERS
-Message <string> Specifies the message to display. This parameter is required. You can also pipe a message string to Verbose-Message. Required? true Position? 1 Default value Accept pipeline input? true (ByValue) Accept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, type, "get-help about_commonparameters".
INPUTS
System.String You can pipe a string that contains the message to Write-Verbose.
OUTPUTS
None Write-Verbose writes only to the verbose message stream.
NOTES

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 variable.
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. RELATED LINKS Online version: http://go.microsoft.com/fwlink/?LinkID=113429 Write-Error Write-Warning about_Preference_Variables C:\Windows>powershell get-help Write-Warning -full

Microsoft Windows [Version 10.0.19045.3693]
Copyright (c) 2023 Microsoft Corporation.

ColorConsole [Version 3.7.1000] PowerShell 2.0-Export

Windows 11, 10, 8.1, 8, 7 / Server 2022, 2019, 2016











Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... The game changer
... Windows 10 FAQ

Why do streaming services keep raising prices without adding value?



PowerShell: Writes text to the verbose message stream.

HTTP: ... PS_Windows/en/Write-Verbose.htm
50.128 msec.
0.124
13492
WINDOWS SETTING MS SETTINGS PRIVACY GRAPHICSCAPTUREWITHOUTBORDER
Welche Grafikkarte brauch ich für Win-7 Aero?
WINDOWS SETTING MS SETTINGS SAVELOCATIONS
What is Windows XI?
Help, Windows 7 has no games (find, install, play)?
Was ist eine UFO Datei?
Was sind, unterschied, EV und OV Code Signing Zertifikate?
What is a browser?
WINDOWS EINSTELLUNG MS SETTINGS PRIVACY WEBCAM
What is facebook.com for an internet site and for what is it good?



(0)