Powershell script to display Exchange 2003 Mailboxes by Location
Posted on 2010-08-17
I am currently running the following script to display the number of mailboxes that exist in the Exchange 2003 environment:
Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer $servers `
| select-object MailboxDisplayName,Size,ServerName,StorageGroupName,StoreName `
| export-csv $outfile -notype
What do I need to do to add in the AD object of physicaldeliveryofficename?
What I would like to do is have the option to sort my results by location.