Exception is thrown while trying to connect to skype for business
Import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession -Credential $credentials
Import-PSSession $sfbSession
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: [admin2a.online.lync.com]
Processing data from remote server admin2a.online.lync.com failed with the following error message:
One or more errors occurred. For more information, see the about_Remote_Troubleshooting Help topic.
Import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession -Credential $credentials
New-PSSession : [admin2a.online.lync.com] Processing data from remote server admin2a.online.lync.com failed with the
following error message: One or more errors occurred. For more information, see the about_Remote_Troubleshooting Help
topic.
At C:\Program Files\Common Files\Skype for Business
Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:254 char:16
- ... $session = New-PSSession -Name $psSessionName -ConnectionUri $Connec ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
- FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed