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?
leonov_alexConnect With a Mentor Commented:
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.
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?
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

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.
When installend and ran "Start -> All Programs -> Exchange 2007 -> Exchange Management Shell" it have to there.
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!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.