Connect to Microsoft Teams PowerShell
Microsoft Teams PowerShell Modunle
You need install Microsoft Teams module only once. In the next time, run to connect to Microsoft Teams PowerShell.
##Install Modunle and Connect to Microsoft Teams
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name MicrosoftTeams;
Connect-MicrosoftTeams
Get-Team | Out-GridView
Export results to a CSV file
New-Item -Path "C:\" -Name "Temp" -ItemType "directory" -Force
Get-Team | Select-Object GroupId, DisplayName, Description, Visibility, Archived |
Export-Csv C:\Temp\Result_$((Get-Date -format yyyy-MMM-dd-ddd` hh-mm` tt).ToString()).csv -NoType | Start C:\Temp
5/5 - (1 vote)