Write-Output

 

SYNOPSIS

Writes objects to the success pipeline.

 

SYNTAX

Write-Output [-inputObject] <PSObject[]> [<CommonParameters>]

 

DETAILED DESCRIPTION

Writes objects to the success pipeline.

 

PARAMETERS

 

-inputObject <PSObject[]>

Specifies the objects to send along the pipeline. Enter a variable that contains the objects or type a command or expression that gets the objects.

 

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, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

INPUT TYPE

Object[]

 

RETURN TYPE

Object[]

 

NOTES

 

For more information, type "Get-Help Write-Output -detailed". For technical information, type "Get-Help Write-Output -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

EXAMPLE 1

 

write-output "test output" | get-member

 

This command pipes the string "test output" to the Get-Membercmdlet which displays the members of the String class, demonstrating that the string was passed along the pipeline.

 

RELATED LINKS

Write-Debug

Write-Verbose

Write-Error

Write-Progress

Write-Host

Write-Warning

Tee-Object