Sends the specified objects to the next command in the pipeline. If the command is the last command in the pipeline, the objects are displayed in the console. (Write-Output)
Sends the specified objects to the next command in the pipeline. If the command is the last command in the pipeline, the objects are displayed in the console.
Write-Output [-InputObject] <PSObject> [<CommonParameters>]
The Write-Output cmdlet sends the specified object down the pipeline to the next command. If the command is the last command in the pipeline, the object is displayed in the console.
Write-Output sends objects down the primary pipeline, also known as the "output stream" or the "success pipeline." To send error objects down the error pipeline, use Write-Error.
This cmdlet is typically used in scripts to display strings and other objects on the console. However, because the default behavior is to display the objects at the end of a pipeline, it is generally not necessary to use the cmdlet. For example, "get-process | write-output" is equivalent to "get-process".
Specifies the objects to send down the pipeline. Enter a variable that contains the objects, or type a command or expression that gets the objects.
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
You can pipe objects to Write-Output.
Write-Output returns the objects that are submitted as input.
# EXAMPLE 1
C:\PS>$p = get-process
c:\PS> write-output $p
These commands get objects representing the processes running on the computer and display the objects on the console.
# EXAMPLE 2
C:\PS>write-output "test output" | get-member
This command pipes the "test output" string to the Get-Member cmdlet, which displays the members of the String class, demonstrating that the string was passed along the pipeline.
Online version: http://go.microsoft.com/fwlink/?LinkID=113427
C:\Windows>powershell get-help Set-PSBreakpoint -full
ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.