when I try to connect to the Teams-Powershell, I get the following error:
[3/17/2025 10:46:45 AM] [Error] [App-Test] Method not found: ‘Void Microsoft.Identity.Client.ITokenCache.Deserialize(Byte)’.
It connects with a certificate against an app. The same with “Connect-MgGraph” and “Connect-ExchangeOnline” is working. In an interactive Powershell-Session with the same settings it works, too.
I’m using it fine in v5.4.1, although I have made a note to run it in PS 5.1 because I couldn’t get it to work in PS 7;
I’m connecting with certificate thumbprint using module version 6.6.0
<#
.DESCRIPTION
Returns the members and owners of selected teams and channels within Teams.
.NOTES
Created: 15/01/2025
Reviewed: 03/02/2025
Requires Powershell 5 the Teams module won't run under Powershell 7
.CHANGELOG
#>
Connect-MicrosoftTeams -Certificate $Thumbprint -TenantId xxxxxxxxxxxx.onmicrosoft.com -ApplicationId cda8c2xx-xxxxxxx-xxxxxxx-xxxx
Tried different solutions (explicitely calling TLS 1.2, trusting the repository and so on, there are many hints on the internet), but can’t get it work at the moment.
Connections to MS Graph and Exchange Online still work, but perhaps the error is corresponding to that..
Yes, I had to install it manually, but the path is also important. First I installed to C:\Windows\System32\WindowsPowershell… (getting the error above), now I installed to C:\Program Files\WindowsPowershell… (both are listed as module path).
I’m sorry for the confusion and thank you for your help!