Geek.Like.Todd

Archive for the ‘Powershell’ Category

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, […]