none
While connecting to office 365 Skype for business powrshell error? RRS feed

  • Question

  • Hello Experts,

    While trying to connect to SFB online module getting error like shown below

    ================

    Get-CsAccessToken : Value cannot be null.
    Parameter name: source
    At C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:123 char:22
    + ... cessToken = Get-CsAccessToken -UserName $UserName -TargetUri $targetU ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-CsAccessToken], ArgumentNullException
        + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Rtc.Management.OnlineConnector.GetAccessToken

    =====================

    What could be the issue

    1. I tried in multiple machines

    2. The same credential works for Exchange online

    3. Checked permission - I am global admin


    Regards, Manju Gowda

    • Moved by Bill_Stewart Wednesday, July 26, 2017 7:44 PM This is not SFB forum
    Friday, June 23, 2017 4:19 AM

All replies

  • The error is specific.  You have null variables in your command.

    Please read the error message carefully.


    \_(ツ)_/

    Friday, June 23, 2017 4:41 AM
  • But I am writing the command individually and trying to connect

    The commands are

    Command1

    =============

    $cred=Get-Credential
    $cssession=New-CsOnlineSession -Credential $cred -OverrideAdminDomain "domain.onmicrosoft.com"
    Import-PSSession $cssession -AllowClobber

    ================

    Command2

    $credential = Get-Credential
    Import-Module SkypeOnlineConnector
    $sfboSession = New-CsOnlineSession -Credential $credential
    Import-PSSession $sfboSession

    =================

    So how do i fine tune this? kindly help


    Regards, Manju Gowda


    Friday, June 23, 2017 5:07 AM
  • Deleted
    Tuesday, October 30, 2018 4:06 AM