Skip to content

Instantly share code, notes, and snippets.

@dpo007
Created January 21, 2021 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpo007/902d53bebc932b9542dcf3bc51e7d2f1 to your computer and use it in GitHub Desktop.
Save dpo007/902d53bebc932b9542dcf3bc51e7d2f1 to your computer and use it in GitHub Desktop.
PowerShell :: Create CSV of all Apps being used in all Teams.
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