June 27th, 2014

PowerTip: List All Lync Enterprise Voice Users with PowerShell

Doctor Scripto
Scripter

Summary: Get a list of users and phone numbers from your Lync infrastructure.

Hey, Scripting Guy! Question How can I use Windows PowerShell to pull a weekly list of all our Lync Telephone numbers?

Hey, Scripting Guy! Answer Use the Get-CSUser cmdlet, and in your Lync Server management shell, type:

GET-CSUser | Where { $_.EnterpriseVoiceEnabled }

If you'd like a list of only the names and phone numbers, use:

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback