Created
January 21, 2021 22:36
-
-
Save dpo007/902d53bebc932b9542dcf3bc51e7d2f1 to your computer and use it in GitHub Desktop.
PowerShell :: Create CSV of all Apps being used in all Teams.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-MicrosoftTeams | |
$teams = Get-Team | |
foreach ($team in $teams) { | |
$teamApps = Get-TeamsAppInstallation -TeamId $team.GroupId | |
foreach ($app in $teamApps) { | |
Write-Output ('{0},{1},{2}' -f $team.DisplayName, $app.DisplayName, $app.TeamsAppId) >> c:\temp\TeamApps.csv | |
} | |
} | |
Disconnect-MicrosoftTeams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment