Stupid Exchange Powershell Tricks: Mailbox size, and Last Logon Time for users —

This command I found here: but I modified it, just a tad.


the Command is:
Get-mailbox -Organizationalunit "" | get-mailboxstatistics | ft displayname,totalitemsize,lastlogontime > Bobshouse.txt
This creates a text file in whatever directory you are running in with the Exchange Shell, and the output will show, User’s Name, Size of User’s Mailbox, and the user’s last logon time, which is helpful if you are giving mail to external users and aren’t certain if they actually use that mail account.

Categorised as: Active Directory | Exchange | Powershell

One Comment

  1. dave says:

    I wonder if the lastlogontime is limited, its hard to believe that some accounts are never logged into, like ever…

Leave a Reply

Your email address will not be published. Required fields are marked *

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