You may find yourself in a situation where you have Exchange in a multi-domain environment, that when your running commands like get-mailbox it’s not displaying mailboxes across all the domains.

You can sort that out by simply expanding your recipient scope, you can do that by running the below command:

Set-AdServerSettings -ViewEntireForest $true