Forum Discussion

Andre Hagmann's avatar
Andre Hagmann
Brass Contributor
Jan 26, 2026

Microsoft Teams PowerShell Module 7.6.0 is broken

Dear Community

I have a few Script with Microsoft Teams PowerShell, witch authenticate via Access Token. Everything works fine until latest Microsoft Teams PowerShell Module Update 7.6.0. I got following Error with the Script.

 

Connect-MicrosoftTeams : Could not load file or assembly 'Microsoft.IdentityModel.JsonWebTokens, Version=8.3.0.0, Culture=neutral, 

PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.


If I downgrade my environment from Version 7.6.0 to Version 7.5.0 and rerun my script, the authentication is working as expected.

What is wrong here with latest PowerShell Module 7.6.0 and how can I resolve the issue


Many thanks for sharing any hint or tip
ANDY

2 Replies

  •  that library is included in the bin\ folder of the same module

     

    Did you remove the other old versions right?

    • Andre Hagmann's avatar
      Andre Hagmann
      Brass Contributor

      Dear Andres, i have tried many troubleshooting's, like deinstall all Microsoft Graph and Teams Module and reinstall only latest Version. I can reproduce this Issue on different computers/servers with same result. 
      My latest idea was to execute the script with PowerShell 7 and there it runs. Also with older Teams Module, like 7.5.0 it works without any issue. Same error with latest 7.6.1 Preview Module

      With Latest Version of Teams PowerShell Module (7.6.0), the File Version of Microsoft.IdentityModel.JsonWebTokens.dll is 8.3.0.51204, but the error mention Version 8.3.0.0 witch could not be loaded

      Connect-MicrosoftTeams : Could not load file or assembly 'Microsoft.IdentityModel.JsonWebTokens, Version=
      8.3.0.0, Culture=neutral, 
      PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

      I do not know, what could be the root cause of the issue.

      if it help, we can do a quick remote Troubelshooting Session by teams.

      Many Thanks
      ANDY