Hi @Juan Pablo CH
Please add some more information to the question.
As far as I understand, Did you mean:
- You have a hybrid deployment (Exchange on-premises with Exchange online)
However, the Exchange on-premises server no longer exists.
- You would like to know which user mailboxes are hosted by the on-premises server
If I misunderstood your question, please feel free to correct me.
If it is the case, I suppose you may achieve this by running some scripts in EXO powershell.
Here are two links which contain the detailed scripts for your reference:
Determine if a Mailbox is On-Premises or in Office 365 with PowerShell
Determine On-Premise and Cloud Mailbox Users
(Please Note: Since the web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.)
If the response is helpful, please click "Accept Answer" and upvote it.
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.