PowerTip: List All Lync Enterprise Voice Users with PowerShell

PowerTip: List All Lync Enterprise Voice Users with PowerShell

  • Comments 1
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment

  • More efficient is to use the -Filter parameter to avoid PS piping overhead:

    Get-CsUser -Filter { EnterpriseVoiceEnabled -eq $true }



    Thanks / rgds,

    http://www.leedesmond.com/