Why Am I Not Getting a Value for TotalItemsSize in PowerShell?

0
0
Asked By TechieGal42 On

I'm trying to check the TotalItemsSize for a specific mailbox using PowerShell. When I run the command `Get-MailboxStatistics -Identity | fl`, it correctly displays various attributes including TotalItemSize. However, when I try to get just that value using `Get-MailboxStatistics -Identity | select-object TotalItemsSize | fl`, I end up with no value shown for TotalItemsSize. Can anyone explain why it's not displaying the expected result? I'm connected to Exchange Online using remote PowerShell.

1 Answer

Answered By CodingNinja42 On

It looks like the issue is just a typo in your second command. You wrote TotalItemsSize with an extra 's'. The correct command should be `Get-MailboxStatistics -Identity | select-object TotalItemSize | fl`. That should fetch you the right value!

TechieGal42 -

Bingo! I can't believe I missed that. Thanks a ton for pointing it out!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.