Created
April 14, 2022 10:52
-
-
Save win2000b/903a9a77bf3c4788f39e9184e216beb9 to your computer and use it in GitHub Desktop.
Get List of Teams Numbers and export to CSV
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
# Install the Teams Module within PowerShell | |
Install-Module MicrosoftTeams | |
# Connect to Microsoft Teams PowerShell | |
Connect-MicrosoftTeams | |
#Get list of Users and export their details to csv | |
Get-CsOnlineUser -Filter {LineURI -ne $Null} | select DisplayName,LineURI,OnlineVoiceRoutingPolicy | Export-CSV c:\temp\teams.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment