none
Passing Credential to skypeforbusinessonline RRS feed

  • Question

  • Hello!

    I have been tasked with getting a task automated that requires a login to skype via the skypeforbusinessonline powershell module.

    My issue is not with getting the script to work (its tested and works). its with just getting sighed into skypeforbusiness online. 

    The below script works just fine when sitting at a desktop, and you use the get-credential command, and are prompted. But it will not accept the stored credential.

    any way around this?

    Import-Module SkypeOnlineConnector

    $userCredential = Get-AutomationPSCredential -Name storedcredentialname
    $sfbSession = New-CsOnlineSession -Credential $userCredential -Verbose -OverrideAdminDomain "quantumcrm.onmicrosoft.com"
    Import-PSSession $sfbSession

    Monday, August 12, 2019 4:10 PM

All replies