Link to home
Start Free TrialLog in
Avatar of sysadmin-ee
sysadmin-eeFlag for United States of America

asked on

Exchange Power Shell Script

Does anyone have a Exchange Power Shell script that will not only get me Mailbox statistics as well as user information, specifically first name, last name together. Below is an example of what I use to get the mailbox stats but I need the users first name and last name also if possible.


Get-MailboxStatistics -Database "ServerName\DB Name" | Sort -Property DisplayName | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label="Mailbox Size(MB)"}, itemcount, lastlogontime, lastlogofftime,lastloggedonuseraccount >C:\FileName.txt
ASKER CERTIFIED SOLUTION
Avatar of Maen Abu-Tabanjeh
Maen Abu-Tabanjeh
Flag of Jordan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this script : http://powershell.com/cs/media/p/3454.aspx

This script will get the mailbox statistics and give you the firstname, lastname, samaccountname.