Sunday, March 4, 2012

Export user details in Lync 2010 using Powershell

List of users

Get-CsUser | select-object SipAddress,LineUri,EnterpriseVoiceEnabled  ..etc


List all users who are Enterprise Voice Enabled, and have a Dial Plan of Calgary


Get-CsUser -Filter {EnterpriseVoiceEnabled -eq $True} | where {$_.DialPlan -match "Calgary"}


List all users with phone number where their AD telephone number contains xxx


Get-CsAduser -Filter {Phone -like "*xxxx"} | select-object DisplayName,Phone


Count Enterprise Voice Users with a Phone Number

(get-csuser -OnLyncServer -Filter {EnterpriseVoiceEnabled -eq $true} | Where-Object {$_.LineURI –match "tel:+"} ).count


Export a List of Enterprise Voice Users

get-csuser -Filter {EnterpriseVoiceEnabled -eq $true} | export-csv evenabled.csv

2 comments:

  1. Hi,
    I have list of email addresses - which is defrent that the upn. how to enable them to lync

    ReplyDelete
  2. get-csaduser -filter {windowsemailaddress -like ‘*@domain.com’} | Enable-CsUser -RegistrarPool “PoolServer.domain.com” -SipAddressType EmailAddress

    You can modify the above command and try.

    ReplyDelete