Export Telephone Number,Name and Emergency-location together using power shell

Copper Contributor
I have a quick question

How to export the Teams enterprise online voice user with below details in powershell

Telephone Number,Name and Emergency-location together using power shell
2 Replies

Hi @karthiD 

 

Are trying to export all the Phone Numbers assigned to the Users in the Tenant? If yes the please try the following command this should work for you.

 

GET-CSUser | Where { $_.EnterpriseVoiceEnabled } | Select-Object DisplayName,LineURI

 

This should provide you with the desired output you are looking for.

 

With Regards,

Satish U 

The term get-csuser does not exist using the MicrosoftTeams PS Module.
Get-CsonlineUser | where { $_.EnterpriseVoiceEnabled } | Select-Object Displayname,lineuri