Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Tee-Object

Tee-Object - Powershell 2.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 »


Short description
Saves command output in a file or variable, and displays it in the console.

Tee-Object [-FilePath] <string> [-InputObject <psobject>] [<CommonParameters>]

Tee-Object -Variable <string> [-InputObject <psobject>] [<CommonParameters>]

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