To check the mailbox databases run this command
Get-ExchangeServer | % { Get-MailboxDatabaseCopyStatus -Server $_.FQDN }
This command brings up every mailbox server in the organization. However, let’s say you have different naming conventions such AAA1 through AAA9, AAB1 through AAB9, and AAC1 through 9. If you only wanted a look at the servers for AAB, leaving out AAA and AAC.
You could use the command
Get-ExchangeServer AAB* | % { Get-MailboxDatabaseCopyStatus -Server $_.FQDN }