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
Apr 03, 2020
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
Wisi65
Jun 02, 2023Copper Contributor
The term get-csuser does not exist using the MicrosoftTeams PS Module.
Get-CsonlineUser | where { $_.EnterpriseVoiceEnabled } | Select-Object Displayname,lineuri