Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Hi @Mirza Irfan Anjum
Thank you for sharing your concerns.
Based on your description, the warning "Exchange can't connect to the Information Store service on server XYZ.LOCAL" when running Get-MailboxDatabase -Status (or similar status cmdlets) might indicated to connectivity between the Exchange servers (or between your PowerShell session and the target server).
As far as I know, the Microsoft Exchange Information Store service (MSExchangeIS) on each Mailbox server is responsible for managing the actual mailbox databases. Cmdlets like Get-MailboxDatabase -Status, Get-Mailbox -Status, or Mount-Database need to query this service directly on the server that hosts the database to retrieve live status information (mounted/dismounted, copy status).
In a mixed Exchange 2013 and 2019 environment (without a shared DAG), when you run the cmdlet from one server or remotely, it often tries to contact the Information Store service on the other server via RPC (Remote Procedure Call). If that RPC connection fails, you might encounter this warning.

Reference: Overview of Exchange 2013 services: Exchange 2013 Help | Microsoft Learn
Get-MailboxDatabase -Status does not work reliably across different major versions (between 2013 and 2019) without proper inter-server connectivity. It could work if you run it locally on the server that owns the database or when full RPC connectivity exists between all Exchange servers in the organization.
You could try to:
Restart the Microsoft Exchange Information Store service on XYZ.LOCAL.
Run the cmdlet locally on each server.
Please note that this summary is based on my own findings and may not fully address your concerns. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
Apologies for redirecting you to the related development team support. As moderators in this community, we do not have access to your specific tenant configuration, and my testing environment is limited. Therefore, my guidance is based on available Microsoft documentation and resources. That said, I’ll do my best to provide additional insight where possible.
If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
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.