Skype for Business Online PowerShell finally supports Modern authentication!

Short, but important – a new version of the Skype for Business Online PowerShell module has been released, which brings support for ADAL. Finally!

Connecting to SfB Online PowerShell works as before, you need to use the New-CsOnlineSession to create a session, then use the Import-PSSession to download all the cmdlets. The difference is that instead of passing a Credentials object, you can use the New-CsOnlineSession with just the username to trigger the ADAL flow:

New-CsOnlineSession -UserName huku@michev.onmicrosoft.com

Behind the scenes, this will fire up the Get-CsAccessToken cmdlet to obtain the token from Azure AD. The familiar dialog will popup and after entering the password, you will have to perform the second-factor authentication, in this case Azure MFA:

042517 1724 SkypeforBus1

And pretty much that’s it. You will be connected and the SfB Online cmdlets downloaded. With that, there’s practically no excuse to not have some form of MFA enabled for all you tenant admins.

You can download the new version (7.0.1045.0 or 7.0.0.0 as reported via PowerShell) from the Microsoft Download Center here: https://www.microsoft.com/en-us/download/details.aspx?id=39366

Oh, apparently the good news don’t stop here – the SharePoint Online PowerShell module also has ADAL support now. Get the new version here: https://www.microsoft.com/en-us/download/confirmation.aspx?id=35588

And in case you have missed it, the Azure RMS PowerShell module also supports ADAL: https://www.microsoft.com/en-us/download/details.aspx?id=30339

1 thought on “Skype for Business Online PowerShell finally supports Modern authentication!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.