After last weeks post Microsoft Teams – Get all your team sites using PnP Powershell, Now my next attempt with the all new Microsoft Teams PowerShell.
First steps first I had to install Microsoft Teams PowerShell.
I hear you say : “Give me the Url for the installer!!!”
No I’m not going to give that!
Just use the following oneliner:
Install-Module MicrosoftTeams
Make sure that you run PowerShell or PowerShell ISE as administrator.
Now we need to connect first:
Connect-MicrosoftTeams
Once you have completed the login form, you can run Get-Team

Note that this only includes your own teams and that you can’t get a full overview of all the teams even if you are not included. Even as an administrator you can’t get all the teams unless you add yourself as a member to all the teams.
Discover more from SharePains
Subscribe to get the latest posts sent to your email.
Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like.
I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@sharepains.com