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:

 

Background

Without the AzureAD Module I got an error:

Could not load file or assembly ‘Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.19.0.0, 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: http://blog.insidelync.com/2017/06/installing-on-the-new-skype-for-business-online-powershell-module-on-windows-10/

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

image

Same issue in CMD

image

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

image

Which then worked:

image

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 tomtalks.show 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.

Regards,
Mateus Alves (brazil)

Leave a Reply:


close

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

No Spam ever, I promise - Tom