Link to home
Start Free TrialLog in
Avatar of WTarlton
WTarlton

asked on

Powershell Enumerate Mailbox Stores

I have the need to Enumerate all the different mailbox stores on our exchange servers. Can somebody show me how this is accomplished?

I have this so far but it pulls up every mailbox on the server...I just want the possible stores

Get-WmiObject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer "EXCHANGE_SERVER"
Avatar of leonov_alex
leonov_alex
Flag of Russian Federation image

In Powershell
[PS] C:\>Get-MailboxDatabase

Name                 Server          StorageGroup         Recovery
----                 ------          ------------         --------
First                ARES            First                False
BigBox               ARES            BigBox               False
Managers             ARES            Managers             False
External             ARES            First                False

Open in new window

Avatar of WTarlton
WTarlton

ASKER

I don't have that function?
I guess I should specify that im not on an Exchange server and I need to do this through WMI from a DC.
When installend and ran "Start -> All Programs -> Exchange 2007 -> Exchange Management Shell" it have to there.
ASKER CERTIFIED SOLUTION
Avatar of leonov_alex
leonov_alex
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chris Dent

I have to agree there. You're better off with LDAP. WMI support for this kind of thing varies depending on Exchange version (2000 has some, 2003 has a lot, 2007 has none, 2010 has none).

Chris
This is what I needed thanks!