Hi. Last week a customer asked me find out which mailboxes had eaten all the pies on a particular Exchange server; getting a list of the largest mailboxes and whether they were in a disconnected state (already removed and waiting purge).
To get an accurate picture I needed to take into account the deleted items in the mailbox as well. It’s a small command but it’s got a few squirrelly bits I’ll go into as well after the line. Continue reading “PowerShell: Get Largest Mailboxes on an Exchange Server (One-Line Command)”