Teams/Skype Online – Unable to discover PowerShell endpoint URI

When connecting to Microsoft Teams or Skype Online ( https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-skype-for-business-online-with-office-365-powershell) you may experience the following error:

Unable to discover PowerShell endpoint URI
At C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:114 char:9
+         throw $resources.DiscoveringEndpointFail
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Unable to disco...ll endpoint URI:String) [], RuntimeException
    + FullyQualifiedErrorId : Unable to discover PowerShell endpoint URI

This occurs when your Office 365 Admin Account is not an onmicrosoft.com account. To resolve you need to specify the -OverrideAdminDomain switch on New-CsOnlineSession and specify your default O365 onmicrosoft domain. E.g:

Import-Module SkypeOnlineConnector
$session = New-CsOnlineSession -UserName "[email protected]" -OverrideAdminDomain "<MyTenant>.onmicrosoft.com"
Import-PSSession -Session $session

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.