Microsoft released several Security Updates (SUs) for Microsoft Exchange Server to address vulnerabilities. Due to…
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.
This Post Has 0 Comments