Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Tee-Object

Tee-Object - 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 »

Tee-Object

Short description
Saves command output in a file or variable and also sends it down the pipeline.

Syntax
Tee-Object [-FilePath] <String> [-Append] [-InputObject <PSObject>] [<CommonParameters>]
Tee-Object [-InputObject <PSObject>] -LiteralPath <String> [<CommonParameters>]
Tee-Object [-InputObject <PSObject>] -Variable <String> [<CommonParameters>]





Description
The Tee-Object cmdlet redirects output, that is, it sends the output of a command in two directions (like the letter "T
"). It stores the output in a file or variable and also sends it down the pipeline. If Tee-Object is the last command i
n the pipeline, the command output is displayed at the prompt.