Any Exchange admins would have been faced with the task of finding the status of all mailbox databases in the messaging environment, atleast once. The main thing that we are normally after is to find out whether all the databases are mounted properly and to find the ones that are not.
This simple command will help you to get a list of all your mailbox databases and see whether they are mounted or not. Some companies have this as part of their daily morning checks. Though it can be found using the exchange console, it is extremely helpful in large enterprises with too many mailbox servers.
Get-MailboxDatabase –Status | Format-Table Name, Server, Mounted
You can use the –Autosize option to have the output in an autosized format depending upon the column width.
Get-MailboxDatabase –Status | Format-Table Name, Server, Mounted -Autosize