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

Get user mailbox script

$
0
0

Hello, can someone please tell me why this particular one doesn't return any values for the mailbox size?  It works if I add the mailbox size property to the objects later, but I would think this should work too no?

$test=get-mailbox -resultsize unlimited | select ServerName,OrganizationalUnit,recipienttype,PrimarySMTPAddress,DisplayName,Database,@{
        name="Mailbox Size (MB)";expression={(get-mailboxstatistics $_.displayname).totalitemsize.value.tomb()}}



Viewing all articles
Browse latest Browse all 21975

Trending Articles



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