Connecting to Skype for Business

Like Exchange Online, Skype for Business has its own module that uses remote PowerShell sessions. Similarly, you will be prompted if you don't provide a value for $Credentials. You might also need to specify the UserPrincipalName that corresponds to the credentials you provide—although it's not 100% clear exactly why this is necessary.

Connecting is fairly straightforward, as the example here shows:

Write-Host -ForegroundColor Cyan "Connect to Skype for Business Online"$global:S4bSession = New-CsOnlineSession -Verbose <# :$VerbosePreference #>-Credential $CredentialsImport-PSSession $global:S4bSession -Verbose <# :$VerbosePreference | Out-Null #>

With Skype for Business, things get a bit complicated if you're ...

Get Mastering Office 365 Administration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.