Question : Check a OU where all user accounts available and get the Exchange mailbox database.

Hi,

Check a OU where all user accounts available and get the Exchange mailbox database.
Like
username | First Storage Group\IN-STORE1-3

Exchange 2007
Regards
Sharath

Answer : Check a OU where all user accounts available and get the Exchange mailbox database.

Exchange management shell, then:

Get-Mailbox -OrganizationalUnit "OU=somewhere,DC=domain,DC=com" -ResultSize Unlimited |
  Select-Object SamAccountName, Database |
  Export-Csv "Report.csv"

CSV okay for the output?

Chris
Random Solutions  
 
programming4us programming4us