Press "Enter" to skip to content

Skype for Business Online PowerShell with Multi Factor Authentication

0

Howdy Folks,

I’ve recently had a customer enable Multi Factor Authentication for all admin roles within the Microsoft Office 365 Tenant.  This causes problems when you need to do any PowerShell activities, such as submitting customized number normalization which need to be completed in the Skype for Business Online PowerShell.

 

To connect up, you will need the latest Skype for Business Online management shell.  At the time of writing this was released in 19th of April 2017 – https://www.microsoft.com/en-gb/download/details.aspx?id=39366   – version 7.0.1045.0 or later.

 

Once this is installed you will need to launch the Windows PowerShell

The Shell we will use is as follows:

$acctName=”user@domain.com”

#Create a Skype for Business Online session
$sfboSession = New-CsOnlineSession -UserName $acctName

#Import the Skype for Business session
Import-PSSession $sfboSession

 

 

You will then be prompted for your password:

 

 

 

You will need to authenticate with your Multi Factor Method.

 

Once you import the PS Session you will then have the Skype for Business Online PowerShell commandlets which you are a custom to.

 

 

I hope this helps with your Multi Factor Authentication Customers.

 

Be sure to share, like, and ask any questions you may have.

Leave a Reply

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