Forum Discussion
karthiD
Apr 02, 2020Copper Contributor
Export Telephone Number,Name and Emergency-location together using power shell
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
How to export the Teams enterprise online voice user with below details in powershell
Telephone Number,Name and Emergency-location together using power shell
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
- Wisi65Copper Contributor
The term get-csuser does not exist using the MicrosoftTeams PS Module.
Get-CsonlineUser | where { $_.EnterpriseVoiceEnabled } | Select-Object Displayname,lineuri