Thank you for reaching out to Microsoft Q&A
In a multi-server Exchange Server environment, inconsistent or incomplete results from the same Exchange Management Shell (EMS) cmdlet, such as Get-MailboxDatabase or Get-ReceiveConnector, are typically caused by differences in how each server accesses Active Directory.
That said, even with healthy replication and correct RBAC roles, each Exchange server may query a different domain controller or global catalog, leading to temporary discrepancies in configuration visibility.
From my research, you can begin by verifying which domain controller each Exchange server is using during EMS sessions. You can do this by running Get-ADServerSettings on each server and checking the PreferredServer and ViewEntireForest settings. If discrepancies are found, temporarily unify the domain controller across sessions using Set-ADServerSettings -PreferredServer <DCName> and ensure ViewEntireForest is set to $true to avoid scope limitations.
Next, confirm that all Exchange servers are running the same Cumulative Update (CU) and Security Update (SU) levels. Version mismatches can lead to cmdlet behavior differences or serialization issues, especially when running EMS remotely. For best results, please remember to execute EMS commands directly on a mailbox-role Exchange server with elevated permissions.
As far as I know, these steps will help ensure consistent EMS output across servers and eliminate common causes such as replication lag, session scope filtering, or outdated server configurations.
Link references:
https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/?view=exchange-ps
You can try the above approach, if the problem still persists, kindly let me know in the comments for further support.
Hope my answer will help you
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.