Geek.Like.Todd

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

This command I found here: http://www.alexdejong.com/?p=326 but I modified it, just a tad.

 

the Command is:
Get-mailbox -Organizationalunit "subdomain.domain.com/Users/BobsHouseofPizza" | 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.


0

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 *