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

# 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

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows-10 / Windows-8.1 & 8 / Windows-7 & Vista / Windows Server 2008-2016
»»»» ColorConsole



 


... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell





;-)









Download the Windows 7 Starter, Home (Basic Premium), Professional und Ultimate!

... facebook.de
0.046
Autocomplete Einträge löschen, die nicht mehr benötigt werden in Q-Dir?  / Wie kann ich VHD unter Windows 8.1 / 8 wieder löschen?  / Windows 7 turn off groups view files and folders?  / Kopieren, Drag und Drop, Verschieben im neuen Prozess (Q-Dir, Explorer)?  / Windows-10 schützt Sie vor Downloads und Installation von Malware (Smart Screen)?  / Hide the Switch User at Login Screen on Windows-10?  / Favoriten exportieren von Google Chrome z.B. auf ein Gast-Konto?  / Verknüpfung für den Geräte-Manager auf dem Windows-10 Desktop, aber wie?  / Wo finde ich den Windows 8 und 8.1 Registry-Editor, um Registry-Einträge zu bearbeiten?  / Additional Clocks in Windows 8.1 / 8 taskbar!  / Enforce updated when change the Local Group Policy settings in Windows 8.1 / 10, how to?  / Wie kann ich bei der Vista Adressleiste sehr lange Verzeichnisnamen editieren/kopieren?  /