Forum Discussion
Hybrid Server Removal post CU12
Error with PowerShell Connectivity ("No Exchange servers are available")
This error usually happens when you're trying to connect to Exchange via remote PowerShell, but no Exchange server is available to provide the session. Since you've removed your hybrid server, the Exchange management tools are no longer able to connect to an active Exchange server for PowerShell management. The workaround you're using (loading the Exchange snap-in manually via Add-PSSnapin) is a valid temporary solution but isn't scalable.
Solution:
- After removing the last hybrid server, you'll need a different way to manage Exchange Online recipients from on-premises, without having a live Exchange server available. In this scenario, you'll likely need to:
- Use Exchange Online PowerShell for managing recipients and objects in Exchange Online.
- If you need to perform tasks for on-premises Active Directory objects related to Exchange, those should be manageable via PowerShell on a machine with the Exchange Management Tools.
If you're using Exchange 2019 CU12 and it's still attempting to connect via remote PowerShell, you might want to verify that you're correctly managing your on-premises AD objects, using AD-specific tools for Exchange attributes. Since you’re not connecting to a live Exchange server anymore, consider using PowerShell scripts for handling Exchange attributes (e.g., Set-Mailbox, New-Mailbox, etc.) for cloud or hybrid configurations.