Share via

Difficulties Creating Private Channels in Microsoft Teams Powershell

G. Castagner 1 Reputation point
2020-08-14T18:54:37.957+00:00

After reinstalling Microsoft Teams and Powershell, I am still left with this error:
17791-image.png

After running in Powershell ISE, I've noticed that the required module to use the -MembershipType Parameter is not imported
17764-image.png

How does one go about importing this package so I can set private channels in MicrosoftTeams
Thanks again

Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

6 answers

Sort by: Most helpful
  1. Vasil Michev 127K Reputation points MVP Volunteer Moderator
    2020-08-14T19:09:07.663+00:00

    As mentioned in the documentation, you need the PREVIEW module for that parameter:

    If you're using the PowerShell steps in this article to manage private channels, you must install and use the Teams PowerShell public preview module from the PowerShell Gallery. For steps on how to install the module, see Install Microsoft Teams PowerShell. The latest General Availability Teams PowerShell module doesn't support managing private channels.

    Get it here: https://www.powershellgallery.com/packages/MicrosoftTeams/1.1.3-preview

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Ross Fawcett 1 Reputation point
    2020-10-06T04:03:26.947+00:00

    According to the current documentation those commands are only available in the private preview version, not in the public general or preview releases. However they are actually available in the 1.15-preview version.

    The following should get you going
    Install-Module -Name MicrosoftTeams -RequiredVersion 1.1.5-preview -AllowPrerelease -AllowClobber

    https://learn.microsoft.com/en-us/powershell/module/teams/new-teamchannel?view=teams-ps

    30278-capture1.png

    30235-capture2.png

    Was this answer helpful?

    0 comments No comments

  3. arnerob 1 Reputation point
    2020-10-05T17:24:41.077+00:00

    Hi, I have the same problem while on that version. 30117-image.png

    Was this answer helpful?

    0 comments No comments

  4. Anonymous
    2020-08-31T18:27:28.06+00:00

    Hi, are there any updates with this case? If not, please select the appropriate response as "Answered." Otherwise please let us know how we can assist you.

    Was this answer helpful?

    0 comments No comments

  5. JimmyYang-MSFT 58,781 Reputation points Moderator
    2020-08-17T02:38:53.71+00:00

    Hi!

    I also agree with michev! You need to install Teams module for PowerShell.

    For more details, you can refer to:

    https://learn.microsoft.com/en-us/MicrosoftTeams/teams-powershell-overview

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.