Back to script samples page
Connect to Skype for Business Online

These PowerShell commands will connect you to your Skype for Business Online service.

This will enable you to administer Skype for Business Online using PowerShell as well as configure some settings that are only accessible through PowerShell.

#Connecting to Skype for Business Online 

#This first command will import the Skype for Business module into your PowerShell session.
Import-Module LyncOnlineConnector

#Capture administrative credential for future connections.
$credential = get-credential

#Create Skype for Business session
$lyncSession = New-CsOnlineSession -Credential $credential

#Import session commands
Import-PSSession $lyncSession
Downloaded 881 times
* * * * * (1)
Comments

No Comments