Microsoft Teams and Skype for Business News and Thoughts

Tom Arbuthnot MVP
Tom Arbuthnot MCSM Communications

This site uses cookies

Find this blog useful? Please take a second to share, thanks!

Connecting to Skype for Business Online PowerShell from Windows 7

Published 01/02/2018 - 1 Comment

Windows 7 x64:



Without the AzureAD Module I got an error:

Could not load file or assembly ‘Microsoft.IdentityModel.Clients.ActiveDirectory, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file
specified.  at New-CsOnlineSession, C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1: line 123
at New-O365Session

Great pointer blog post from Curtis, you should check out his blog:

I couldn’t get his solution to work (probably something I was doing wrong:


Same issue in CMD


However that gave me the clue I needed and installed the AzureADPreview module:


Which then worked:


Tom Arbuthnot

Tom Arbuthnot

Principal Solutions Architect at Modality Systems
Tom Arbuthnot is Principal Solutions Architect at Unified Communications specialist Modality Systems. He is a Microsoft Certified Master and MVP, blogger, has a regular podcast with UCToday at and is a regular speaker at events including Microsoft TechEd and Ignite. He co-runs The Microsoft UC User Group London.

1 comment

Mateus - 15/05/2018 Reply

Hi Tom,

I was just trying to run my ps1 scripts using Visual Code and got confused whith that error message. I mean, I was able to connect to S4B module using ISE and the very PowerShell, so I wasn’t able to find the problem.

Thanks a lot for sharing that easy and very effective solution.

Mateus Alves (brazil)

Leave a Reply:


Weekly Email Update 
of all the key 
Microsoft Teams and Skype for Business News
every Tuesday

No Spam ever, I promise - Tom