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"
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

WTarltonAuthor Commented:
I don't have that function?
WTarltonAuthor Commented:
I guess I should specify that im not on an Exchange server and I need to do this through WMI from a DC.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

When installend and ran "Start -> All Programs -> Exchange 2007 -> Exchange Management Shell" it have to there.
There is no WMI provider installed for Exchage by default. Try LDAP request in this scope:

CN=InformationStore,CN=[SERVER],CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=[Org],CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=[Domain]

Or install Exchane Managment tools.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chris DentPowerShell DeveloperCommented:

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).

WTarltonAuthor Commented:
This is what I needed thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.