locked
Win2012R2 Powershell - Cannot connect to URI while executing New-CsOnlineSession RRS feed

  • Question

  • Hi Folks

    Should be a simple one, this works fine on WIn10 client.  Trying to run this on a customer Win2012R2 box and it throws a wobbly:

    ----

    $SfBsession = New-CsOnlineSession -Verbose -OverrideAdminDomain $MSDomain -Credential $cred 
            # Check PSSession
            Import-PSSession -Session $SfBsession

    ----

    Checking for Connection to S4B
    ==============================================================
    Connecting
    VERBOSE: AdminDomain = '*****co****.onmicrosoft.com'
    VERBOSE: Discovering PowerShell endpoint URI
    Get-CsOnlinePowerShellEndpoint : The underlying connection was closed: An unexpected error occurred on a send.
    At C:\Program Files\Common Files\Skype for Business
    Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:149 char:26
    + ... targetUri = Get-CsOnlinePowerShellEndpoint -TargetDomain $adminDomain ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-CsOnlinePowerShellEndpoint], WebException
        + FullyQualifiedErrorId : System.Net.WebException,Microsoft.Rtc.Management.OnlineConnector.GetPowerShellEndpointCm
       dlet

    I've tried playing with TLS1.2 levels but I don't understand why it throws it's toys out of the pram. As you can see I have already specified the override URL.  As I say, this works on a Win10 box.

    Suggestions?

    Thank you in advance.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    • Edited by Geekphreek Tuesday, July 14, 2020 3:32 PM Cleaned up title
    Tuesday, July 14, 2020 3:32 PM

All replies