Powershell Access with FL to fields of the first command on the pipe
Posted on 2014-09-30
Imagine this PS :
Get-Mailbox "xxx" --> one of the fields returned could be "emailaddresses"
ok , now I build a pipe like :
Get-mailbox "xxx" | Get-mailboxstatistics | FL emailaddresses, lastlogontime
where lastlogontime belongs to the Get-mailboxstatistics command and emailadresses belongs to Get-mailbox command.
Question is : How can I access the fields returned by the first command ? Apparently I can only diplay waht is returned by the last command on the pipe.
many thnks in advance !
** dont' try to find any sense on the command above .. just a way to illustrate the problem I have on a more complex issue.