Unable to connect to Skype for Business Online remote powershell in a hybrid environment. To Connect to Skype for Business PowerShell commonly use:

Or (with all tools installed)

But, Administrators who have a Skype for Business hybrid deployment may receive the following error message when they try to connect to Skype for Business Online Remote PowerShell:

This is expected behaviour for a Hybrid environment and the issue occurs when the DNS records for LyncDiscover are pointed to the on-premises Skype for Business environment.

To resolve this issue, run the cmdlet again, but instead add the -OverrideAdminDomain parameter. Use the default domain that was included with your Office 365 subscription; for example, use name.onmicrosoft.com:

These easy steps have now provided remote PowerShell access to the connected Skype for Business Online. To test connectivity simply try running  Get-CsUser.