Forum Discussion
Adriano Neves
Mar 24, 2020Copper Contributor
Teams/Powershell - Updating MicrosoftTeams Module
Hi,
I'm trying to use this command:
New-TeamChannel -GroupId <String> -MembershipType Private
But the "-MembershipType" isn't available on the current module version I have (1.0.5):
Version Name Repository Description
------- ---- ---------- -----------
1.0.5 MicrosoftTeams PSGallery Teams Cmdlets module
It is supposed to work with more recent versions, but those are only available in this beta channel:
https://www.poshtestgallery.com/packages/MicrosoftTeams/1.0.21
How can I update the MicrosoftTeams module to this beta version?
Thanks
- Adriano NevesCopper Contributor
I think I got it.
Uninstall any other MicrosoftTeams modules already installed.
Add the test repository:
Register-PSRepository -Name PSTestGallery -SourceLocation https://www.poshtestgallery.com/api/v2
And then force the installation from that Repository:
Install-Module -Name MicrosoftTeams -Repository PSTestGallery -Force