Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Write-Output

Write-Output - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Write-Output

Short description
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.

Syntax
Write-Output [-InputObject] <PSObject[]> [<CommonParameters>]





Description
The Write-Output cmdlet sends the specified object down the pipeline to the next command. If the command is the last co
mmand 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 s
end 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 defa
ult behavior is to display the objects at the end of a pipeline, it is generally not necessary to use the cmdlet. For e
xample, "get-process | write-output" is equivalent to "get-process".