Forum Discussion

karthiD's avatar
karthiD
Copper Contributor
Apr 02, 2020

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
  • 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's avatar
      Wisi65
      Copper Contributor

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

Resources