question

Crod-8019 avatar image
0 Votes"
Crod-8019 asked JimmyYang-MSFT edited

MicrosoftTeams PS ver 2.3.0

Followed this to install new version: https://jeffbrown.tech/microsoft-releases-new-microsoft-teams-powershell-module/#:~:text=%20Microsoft%20Releases%20New%20Microsoft%20Teams%20PowerShell%20Module,PowerShell%20Module.%20Use%20the%20Get-Module%20command...%20More%20

Problem is now when I run the following:
Connect-MicrosoftTeams
New-Team -DisplayName "MSTeams - Test" -Description "Team to post technical articles and blogs" -Visibility Private

I get this new error:
New-Team : One or more errors occurred.
At line:1 char:1
+ New-Team -DisplayName "MSTeams - Test" -Description "Team to post tec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-Team], AggregateException
+ FullyQualifiedErrorId : System.AggregateException,Microsoft.TeamsCmdlets.PowerShell.Custom.NewTeam


Anyone else know what is going on please?

I'm running the following powershell version: 5.1.19041.906

windows-server-powershelloffice-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered SharonZhao-MSFT commented

@Crod-8019,

Could you create a team from Teams client or Teams admin center?

Please confirm with IT admin if he configures the following settings properly:

  1. check if Create private channels is enabled in Microsoft Teams admin center > Teams polices > Global(Org-wide default).
    95105-image.png

  2. check if you are limited to create a group. For more details, please read this article.


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (2.1 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yeah thats not issue at all, Issue is powershell but thanks

0 Votes 0 ·

@Crod-8019,

Could you run other Teams commands properly?

According to your error message, it seems no explicit orientation about the cause.

Meanwhile, I run your command in my lab. It works properly. My PowerShell version is 5.1.14393.3471.

I will add office-teams-app-dev tag to get more support. Thanks for your understanding.

0 Votes 0 ·

@Crod-8019 ·- Please let us know if your issue has been resolved.

0 Votes 0 ·

@Crod-8019,
If you have any update, please feel free to drop us a note.
Have a nice day!

0 Votes 0 ·