We are excited to announce the general availability of the Microsoft Teams PowerShell module. This PowerShell module, first released in Beta last year, allows you to manage the lifecycle of teams within your organization. As a Global Administrator or Teams Service Administrator, you can identify and manage teams on behalf of your users, and make bulk updates to teams faster – including changing memberships or managing team settings. This new version of our module leverages only 1.0 Graph APIs.


Going forward, we will be maintaining both a Preview and Generally Available versions of the Microsoft Teams PowerShell module. This will allow us to deliver new, preview functionality to our customers faster for testing, while ensuring that our Generally Available module continues to leverage only 1.0 APIs.


The following cmdlets are supported in our generally available module:




Connects an authenticated account to use for Microsoft Teams environment


Disconnects from the Microsoft Teams environment


Retrieves teams with particular properties or information


Gets all the channels for a team


Provides a list of commands for Microsoft Teams


Returns the users of a specific team


Provisions a new Team, or converts a group to a team


Adds a new channel to a team


Adds an owner or member to the team


Deletes a team


Deletes a channel


Removes an owner or member from a team


Updates properties of a team


Updates Team channel information


Additional Functionality in New Release
In addition to leveraging solely 1.0 APIs, we have made a few improvements to cmdlets in the Generally Available module:


Connect-MicrosoftTeams: You can now specify a Teams Government Environment (-TeamsEnvironmentName) that your organization is homed in.


Get-Team: We expanded the filter and selection criteria to include properties such as the Visibility or Archived state of the teams so that you can more easily identify teams that may require your attention

Simplified Experience
To improve the discoverability of certain team settings, we consolidated the functionality of the following cmdlets into the Get-Team and Set-Team cmdlets:


- Get-TeamFunSettings
- Get-TeamGuestSettings
- Get-TeamMemberSettings
- Get-TeamMessagingSettings
- Set-TeamFunSettings
- Set-TeamGuestSettings
- Set-TeamMemberSettings
- Set-TeamMessagingSettings


Note: These beta cmdlets will not be available in future module releases


Want to learn more about PowerShell?
Because Teams is built on top of different services, PowerShell controls for Teams are split across several modules. Learn more about PowerShell for Teams (also includes links to the technical docs for individual cmdlets).


Let us know what you think!
If you have suggestions on how to make Teams better, please submit your idea via User Voice or vote for existing ideas to help us prioritize the requests. We read every piece of feedback that we receive to make sure that Microsoft Teams meets your needs.
Christopher Bryan, Microsoft Teams


Great news!

New Contributor
Excellent news !
Respected Contributor

please make sure that this gets posted to the O365 Admin Center Message page

Just installed GA version of the MicrosoftTeams #PowerShell module. Connect-MicrosoftTeams command worked as expected. The next one, Get-Team, failed with the error message "Unsupported token. Unable to initialize the authorization context." :( Using -Verbose or -Debug doesn't provide any additional information useful for a troubleshooting.

New Contributor

awesome - thanks! 

Be sure to check out the DSC resources as well!  



Senior Member

Very helpful and great thanks. I have tried both 0.9.6 and 1.0.0 and got one question.

When adding owner using Add-TeamUser like:  Add-TeamUser  -GroupId <GroupID> -User <UserEmail> -Role Owner then check its status in Office365 group, I found the identified user is just shown as O365 group owner and have no member permission. So each time I have to run command twice, one for -role owner and one for -role member to ensure this user can use every function in Teams.

Do you intentionally design the command like this? 


Meanwhile, the owner identified in New-Team like:  New-Team -DisplayName <TeamName> -Owner <UserEmail> -Visibility Private can be found as both owner and member in office365 group.




Senior Member

Great Thanks

This is really great news!

Senior Member

@Aleksandar Nikolic I experienced the same, restarting the PowerShell helped me fix the issue.

Teams1.0 Module.pngGet-Team with 1.0 module

Occasional Contributor

I wish Get-Team returned the URL for the team.  That would make our lives a lot easier.

Occasional Visitor

I agree with you Alex, instead of providing the Group ID, if it returns the Team Site URL or both would be really helpful.

Occasional Contributor

Excellent news, just one thing which would be a really nice to have would be to change the group a Team is attached to, is this something on the Roadmap?

Occasional Contributor

How can i get the GuestSettings now?

Occasional Visitor

I'm finding it impossible to report on which Teams have guests in the new module and the table in the Admin Center isn't sortable or filterable. I need to keep an eye on guest access but I'm also not trained in PowerShell and one of those saps who has to google everything and snag others' scripts. I found one but it times out before it finishes so I'm not even sure if it works or not. I don't even really need to know who the guests are, I just need to say to Team owners "Hey, you have external guests in your Team. Please make sure these are valid guests and remove access as needed." etc., etc.

Occasional Contributor
Go into the Teams Admin Center. Click on Teams. The landing page lists all teams and the number of guest users in each team.
Respected Contributor

@Aashe4one easy way to do that is with the Access Review feature in Azure AD, it is specifically designed for that purpose. see https://docs.microsoft.com/en-us/azure/active-directory/governance/access-reviews-overview