Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Piping the results of a query

$
0
0

I am trying to pipe the results of:
(Get-Mailbox crusso -IgnoreDefaultScope | Select-object DistinguishedName -ExpandProperty DistinguishedName)

into the get-mailboxstatistics below without any luck.

Anyone have an idea what i am doing wrong?

(Get-Mailbox tSmith -IgnoreDefaultScope | Select-object DistinguishedName -ExpandProperty DistinguishedName) | Get-MailboxFolderStatistics -Identity$._ | Select-Object Name,Identity,FolderPath,ItemsInFolder,ItemsInFolderAndSubfolders


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>