Tee-Object - Powershell 1.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
Description Send input objects to two places Usage Options Example(s) Get a list of the processes running and send to a file and also the console: PS C:\>get-process | tee-object -filepath C:\fileA.txt Get a list of the processes running and send to two files at once: PS C:\>get-process | tee-object -filepath C:\fileA.txt | out-file C:\fileB.txt Save a list of processes to a variable (myprocs) then use Tee-Object to save the myprocs to file and also display on the console: PS C:\>$myprocs = Get-Process |Select-Object processname,handles PS C:\>Tee-Object -inputObject $myprocs -filepath C:\fileC.txt