Summary: Get a list of users and phone numbers from your Lync infrastructure.
How can I use Windows PowerShell to pull a weekly list of all our Lync Telephone numbers?
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