Hello everyone,
Using the Exchange management console I was able to export mailbox information that include 'UserMailbox, LinkedMailbox, RoomMailbox and Shared Mailboxes' but I wanted to also include a column for mailbox usage data and export that to a CSV..
Exchange Management Console Output:
Get-Recipient -ResultSize 'unlimited' -SortBy DisplayName -RecipientType 'UserMailbox' -Filter '((((RecipientTypeDetails -like ''*UserMailbox*'') -or (RecipientTypeDetails -like ''*LinkedMailbox*'') -or (RecipientTypeDetails -like ''*RoomMailbox*'') -or (RecipientTypeDetails -like ''*SharedMailbox*''))))' | Out-file c:\UserListing.csv
When I put in the following code:
Get-Recipient -ResultSize 'unlimited' -SortBy DisplayName -RecipientType 'UserMailbox' -Filter '((((RecipientTypeDetails -like ''*UserMailbox*'') -or (RecipientTypeDetails -like ''*LinkedMailbox*'') -or (RecipientTypeDetails -like ''*RoomMailbox*'') -or (RecipientTypeDetails -like ''*SharedMailbox*''))))' | Get-MailboxStatistics | select TotalItemSize | Out-file c:\UserListWithMBSIze.csv
This will only output the mailbox stats information in one column.
Does anyone know how to generate a listing that will include the following:
DisplayName, SamAccountName, LastModified Date, Organization Unit, Mailbox Size Data
Exchange 2010 Outlook 2007 (cache mode)