List members of a storage group in Exchange 2007
We are running Exchange 2007 and I am trying to find a command to list the members of each of our storage groups. Anyone have any suggestions on this?
September 26th, 2011 6:43pm

On Mon, 26 Sep 2011 15:43:12 +0000, jmhollid wrote: >We are running Exchange 2007 and I am trying to find a command to list the members of each of our storage groups. Anyone have any suggestions on this? Since you want all mailboxes, you can use something like this: $x=@();get-mailbox -resultsize unlimited | foreach {$parts = $_.Database.tostring().split('\');$l = ""|select d,s,sg,db; $l.s = $parts[0]; $l.sg = $parts[1];$l.db = $parts[2]; $l.d = $_.Displayname; $x+=$l};$x|ft -auto You can adjust the simple names I used to be more meanngful. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 26th, 2011 7:12pm

Assuming you want all mailboxes in a storage group Get-StorageGroup -Identity "server\SG" | Get-MailboxDataBase | get-mailbox
September 26th, 2011 8:03pm

Thanks that works perfectly!
Free Windows Admin Tool Kit Click here and download it now
September 27th, 2011 2:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics