Enable modern authentication for Skype for Business Online via PowerShell

Modern authentication is disabled in Skype for Business Online in Office 365  by default. However, you can enable it via PowerShell. The article explaining how to enable modern authentication in Skype for Business in Office 365 is missing a small item or two (like where to get the PowerShell snap-in you need.

For reference, below is a sample script with the basics in one place.

First, download and install Skype for Business PowerShell snap-in:

Run these commands one at a time, as you will need to paste a value into line 10, as mentioned in the comment on line 9 below.

# Capture your credentials to a credential object 
$UserCredential = Get-Credential

# Connect to Skype for Business in your Office 365 tenant
$session = New-CsOnlineSession -Credential $UserCredential -Verbose

Import-PSSession $session

# Paste the value from Name field to replace tmp_vubyaegp.m3f below 
Get-Command -Module tmp_vubyaegp.m3f

# Enable Skype for Business tenent to support modern auth
Set-CsOAuthConfiguration -ClientAdalAuthOverride Allowed

# verify success

Questions or comments? Use the comments section below.

Leave a Reply