Tuesday, December 15, 2009

Exchange 2007 - get the list of mailboxes from database

To get the list of mailboxes per databases: for ex. Exch2 SG1 DB1

Get-Mailbox –Database “EXCH1\EXCHSG1\DB1” | Format-Table DisplayName,WindowsEmailaddress,Database > exch2sg1db1.txt


or


Get-Mailbox –Database “EXCH2\EXCH2_SG1\DB1” | Format-Table DisplayName,WindowsEmailaddress,Database > exch2sg1db1.txt

No comments: