Monday, May 22, 2017

How to run power shell commands against Skype Online if MFA is enabled - Updated

Regarding my post on Friday May 19th. I have got new information that the lates version of Skype Power shell finally supports modern authentication.


Here is an updated post:
Start to create a new ps1 script like this and then store this ps1 file on e.g C:\SkypeOnline





Notice that I don`t use the old passing the Credentials object. I use the -UserName instead to launch the ADAL.
This will start up Get-CsAccessToken to get token from Azure Active Directory.


Download the latest version of Skype Online Power shell module: (https://www.microsoft.com/en-us/download/details.aspx?id=39366)





Start Skype for Business server management shell



Launch the SkypeOnline.ps1 script



Type in your admin account

In this case a also need to get an SMS with code



Then you can run commands


Thank you very much to Ståle Hansen (https://msunified.net/) who made me aware of this new opportunity

No comments:

Post a Comment