This function retrieves all Exchange mailboxes that belong to a specified domain.
It filters the mailboxes based on their primarySMTP address to ensure they match the provided domain.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.