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

%3CLINGO-SUB%20id%3D%22lingo-sub-1275253%22%20slang%3D%22en-US%22%3EExport%20Telephone%20Number%2CName%20and%20Emergency-location%20together%20using%20power%20shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1275253%22%20slang%3D%22en-US%22%3EI%20have%20a%20quick%20question%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20to%20export%20the%20Teams%20enterprise%20online%20voice%20user%20with%20below%20details%20in%20powershell%3CBR%20%2F%3E%3CBR%20%2F%3ETelephone%20Number%2CName%20and%20Emergency-location%20together%20using%20power%20shell%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1275253%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277502%22%20slang%3D%22en-US%22%3ERe%3A%20Export%20Telephone%20Number%2CName%20and%20Emergency-location%20together%20using%20power%20shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277502%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371838%22%20target%3D%22_blank%22%3E%40karthiD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20trying%20to%20export%20all%20the%20Phone%20Numbers%20assigned%20to%20the%20Users%20in%20the%20Tenant%3F%20If%20yes%20the%20please%20try%20the%20following%20command%20this%20should%20work%20for%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGET-CSUser%20%7C%20Where%20%7B%20%24_.EnterpriseVoiceEnabled%20%7D%20%7C%20Select-Object%20DisplayName%2CLineURI%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20should%20provide%20you%20with%20the%20desired%20output%20you%20are%20looking%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20Regards%2C%3C%2FP%3E%3CP%3ESatish%20U%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New 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
1 Reply
Highlighted

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