dMb Online

BBQ Lover, Real Ale Monster, Snowboarder, Technical Architect.

  • About Me
  • Contact

Exchange 2013

Exchange Powershell

18/10/2013 / Leave a Comment

In recent months both myself and powershell are becoming best buds. I love the way how it makes my life so much easier. I’ve been asked by plenty of customers for a comprehensive list of mailboxes on their IT systems, you can find out by entering the following powershell command on Microsoft Exchange 2007, 2010 and 2013 servers:

get-mailbox –resultsize unlimited | get-mailboxstatistics | select-object DisplayName,TotalItemSize,LastLogonTime | Sort-Object DisplayName

The above command will display a list of mailboxes sorted by the DisplayName field, the size of mailbox and when they last logged on.

If you would like to output this to a text file to send to someone you can use:

get-mailbox –resultsize unlimited | get-mailboxstatistics | select-object DisplayName,TotalItemSize,LastLogonTime | Sort-Object DisplayName > C:\list-of-mailboxes.txt

Enjoy

Posted in: Microsoft Tagged: Exchange, Exchange 2007, Exchange 2010, Exchange 2013, List Of Mailboxes, Mailbox, Microsoft, Powershell

Buy Me a Coffee

Copyright © 2025 dMb Online.

Me WordPress Theme by themehall.com

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok