0

I am trying to provision the Microsoft Teams using PowerShell scripts.

Is there any way that we can do that.

If yes please provide the sample scripts or supporting articles

1 Answer 1

2

You can use the New-PnPTeamsTeam command to create a new Team.

To use that, you can do that as below:

Connect-PnPOnline -Scopes "Group.ReadWrite.All"

and then

New-PnPTeamsTeam -DisplayName "<Your-team-name>"

Reference - New-PnPTeamsTeam

If you want to add additional parameters like owner, team settings etc. just follow the link above. You need to be a Global admin or use an account with similarly high permissions to execute this command as it creates a SharePoint team site, Office 365 group and Team ofcourse.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.