sysadmin-ee
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={$_.totalitem size.value .ToMB()};l abel="Mail box Size(MB)"}, itemcount, lastlogontime, lastlogofftime,lastloggedo nuseraccou nt >C:\FileName.txt
Get-MailboxStatistics -Database "ServerName\DB Name" | Sort -Property DisplayName | ft DisplayName, @{expression={$_.totalitem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
This script will get the mailbox statistics and give you the firstname, lastname, samaccountname.
http://powershell.com/cs/cfs-filesystemfile.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.30.62/MailboxStats.txt