none
Enable Lync User For Enterprise Voice RRS feed

  • Question

  • Hi guys, just wanna know if there are any powershell scripts to enable the enterprise voice policy to All lync in AD?

    Tuesday, April 10, 2012 9:46 AM

Answers

  • Hi,

    I use the followng powershell script to enable my AD users:

    #Enable All AD users of one OU to Lync Users

    Get-CsADUser -OU "OU=Test,dc=contoso,dc=com" | Enable-CsUser -RegistrarPool pool1.contoso.com -SipAddressType FirstLastName

    #Enable All Lync Users Enterprise Voice And Assign A LineURI to them

    $GetUsers=get-CsUser -Identity "* *" -OU "OU=Test,dc=contoso,dc=com"

    $LineNum=862112345678

    foreach($User in $GetUsers)

    {

    $DN=$User.DisplayName

    $LineURI="+"+$LineNum

    Set-CsUser -Identity $DN -EnterpriseVoiceEnabled $True -LineURI TEL:$LineURI

    $LIneNum++

    }


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, April 12, 2012 2:48 AM
    Moderator

All replies

  • All lync user in AD
    Tuesday, April 10, 2012 9:46 AM
  • Hi,

    Below URL would be helpful.

    http://blog.lyncfreak.com/2011/12/04/lync-scripting-part-2-enterprise-voice-enable-users/

    Thanks

    Saleesh


    If answer is helpful, please hit the green arrow on the left, or mark as answer.

    Tuesday, April 10, 2012 10:20 AM
  • Hi,

    I use the followng powershell script to enable my AD users:

    #Enable All AD users of one OU to Lync Users

    Get-CsADUser -OU "OU=Test,dc=contoso,dc=com" | Enable-CsUser -RegistrarPool pool1.contoso.com -SipAddressType FirstLastName

    #Enable All Lync Users Enterprise Voice And Assign A LineURI to them

    $GetUsers=get-CsUser -Identity "* *" -OU "OU=Test,dc=contoso,dc=com"

    $LineNum=862112345678

    foreach($User in $GetUsers)

    {

    $DN=$User.DisplayName

    $LineURI="+"+$LineNum

    Set-CsUser -Identity $DN -EnterpriseVoiceEnabled $True -LineURI TEL:$LineURI

    $LIneNum++

    }


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, April 12, 2012 2:48 AM
    Moderator