Exchange server powershell cmdlet commands to view the top 40 mailbox users
In fact, I think there are many ways to do this. I will only say one of them. As for why it is written, it doesn't matter.
[PS] C:\ Windows\ system32 > Get-Mailbox-ResultSize Unlimited | Get-MailboxStatistics | Sort-Object TotalItemSize-Descendi
Ng | Select-Object DisplayName,TotalItemSize-First 40
For those who would like to refer to this command, you can go here to have a look:
Https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/get-mailboxstatistics?view=exchange-ps
Powershell command is very flexible to use, this is a scripting language, that is, it feels that the Shell made by Microsoft is much better than that under Linux, with a unified specification. It turned out that I planned to record a Powershell video of about 100 episodes, but I saw that few people in China used these things. I'd rather not.
To do management, if you want to appear more professional than others, it is better to use Shell for batch management, the efficiency will be greatly improved.