Skip to content

Get Exchange mailbox database mount status with PowerShell

Get Exchange mailbox database mount status with PowerShell. Sometimes you need to know the database mount status. What is a better way than using PowerShell? In this article, you will learn how to check the database mount status with PowerShell.

Get Exchange mailbox database mount status

Run Exchange Management Shell as administrator. We are going to sort on the database name.

[PS] C:\>Get-MailboxDatabase -Status | Sort Name | Format-Table Name, Server, Mounted

Name Server Mounted
---- ------ -------
DB01 EX01      True
DB02 EX01      True
DB03 EX02      True
DB04 EX02      True
DB05 EX01      True
DB06 EX02      True

All the databases are mounted on the Exchange Servers EX01 and EX02.

Get mailbox database mount status including older Exchange versions

What if you have mailbox databases in previous Exchange versions? Make use of the -IncludePreExchange switch. We can see that we have two mailbox databases running in Exchange Server 2010. That’s good to know because Exchange Server 2010 end of life support is reached.

[PS] C:\>Get-MailboxDatabase -IncludePreExchange -Status | Sort Name | Format-Table Name, Server, Mounted

Name     Server Mounted
----     ------ -------
DB01      EX01      True
DB01-2010 EX01-2010 True
DB02      EX01      True
DB02-2010 EX01-2010 True
DB03      EX02      True
DB04      EX02      True
DB05      EX01      True
DB06      EX02      True

If you like to sort on Server name, run the following command.

[PS] C:\>Get-MailboxDatabase -IncludePreExchange -Status | Sort Server | Format-Table Name, Server, Mounted

Name      Server Mounted
----      ------ -------
DB01      EX01      True
DB02      EX01      True
DB05      EX01      True
DB01-2010 EX01-2010 True
DB02-2010 EX01-2010 True
DB04      EX02      True
DB03      EX02      True
DB06      EX02      True

I hope that this article was informative to you.

Read more: Dismount database Exchange with PowerShell »

Conclusion

In this article, you learned how to get Exchange mailbox database mount status with PowerShell. The Get-Mailboxdatabase cmdlet is all you need to get the output of the mounted status.

Did you enjoy this article? You may like Mount database Exchange with PowerShell. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *