PowerShell script to retrieve all Exchange Online users with an on-premise AD account who are not enabled for remote mailbox
Many organizations are and will continue to have a hybrid environment where user accounts are created on an on-premise Active Directory and their mailboxes are created in Exchange Online linked to their Entra ID synchronized account with AD Connect. Those who still maintain an on-premise