PowerShell is an very powerful script engine that can help you to manage Microsoft platforms, but also VMware and Citrix Products.
Today we are going to use PowerShell to create an list of all the mailboxes in our Exchange 2010 organization. The extra information we want is the number of items in the mailbox and the total size of the mailbox. We want to present this data to our management so we want save the output.
The command in PowerShell we use to accomplish this is:
Get-MailboxStatistics –Server %MAILBOXSERVERNAME% | Sort-Object -Property TotalItemSize -Descending | Format-Table DisplayName,TotalItemSize,ItemCount > C:OUTPUTOUTPUT.TXT
Was once an enthusiastic PepperByte employee but is now working at Ivanti. His blogs are still valuable to us and we hope to you too.