none
Automatically Enable Lync Account for Domain Users RRS feed

  • Question

  • Hi...

    We are using Lync2010 - and we would like to automate the process for all domain users.

    Example : when any user join the company - the system admin have to enable his account manually where new user can use Lync.  

    We want to enable automatically when any user domain account is created in AD.

    Kindly assist


    Thanks

    Tuesday, August 7, 2012 12:31 PM

Answers

  • Hi,

    You can use the Windows Scheduled Tasks on one of Lync Servers to run

    Get-CSADUser -Filter {Enabled -ne $True} | Enable-CsUser -RegistrarPool LyncPool01.HanyTaha.Lab -SipAddressType SamAccountName -SipDomain HanyTaha.Lab

    Every reasonable interval (like once per day).


    Best Regards,
    Hany Taha | UC/Voice Infrastructure Consultant | Technical Consultancy Services | Nile.Com | Mobile: +20 (10) 01686836


    • Edited by Hany Taha Thursday, August 9, 2012 2:12 PM underlined
    • Proposed as answer by Hany Taha Thursday, August 9, 2012 2:12 PM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:32 AM
    Tuesday, August 7, 2012 1:00 PM
  • There is no such option in Lync. Use PS scripts.

    Here is some usefull link: http://blogs.technet.com/b/akshat/archive/2011/07/26/automatically-enable-users-in-a-particular-ou-for-lync-2010.aspx


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

    • Proposed as answer by Alexey Filatov Tuesday, August 7, 2012 1:55 PM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:33 AM
    Tuesday, August 7, 2012 1:55 PM
  • Hi,

    It cannot be enabled automatically. But you can use a script to enable Lync user.

    You can refer to this link:

    http://social.technet.microsoft.com/Forums/en-AU/ocsvoice/thread/731f1868-45fa-4cbb-adfd-acbdd9f4cf56

    The script Sean provided can help to enable AD user to Lync user quickly and also enable enterprise voice for the user and assign a Line URI number to user.


    Regards,

    Kent Huang

    TechNet Community Support

    ************************************************************************************************************************

    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.




    • Edited by Kent-Huang Thursday, August 9, 2012 7:13 AM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:33 AM
    Thursday, August 9, 2012 7:09 AM

All replies

  • Hi,

    You can use the Windows Scheduled Tasks on one of Lync Servers to run

    Get-CSADUser -Filter {Enabled -ne $True} | Enable-CsUser -RegistrarPool LyncPool01.HanyTaha.Lab -SipAddressType SamAccountName -SipDomain HanyTaha.Lab

    Every reasonable interval (like once per day).


    Best Regards,
    Hany Taha | UC/Voice Infrastructure Consultant | Technical Consultancy Services | Nile.Com | Mobile: +20 (10) 01686836


    • Edited by Hany Taha Thursday, August 9, 2012 2:12 PM underlined
    • Proposed as answer by Hany Taha Thursday, August 9, 2012 2:12 PM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:32 AM
    Tuesday, August 7, 2012 1:00 PM
  • There is no such option in Lync. Use PS scripts.

    Here is some usefull link: http://blogs.technet.com/b/akshat/archive/2011/07/26/automatically-enable-users-in-a-particular-ou-for-lync-2010.aspx


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

    • Proposed as answer by Alexey Filatov Tuesday, August 7, 2012 1:55 PM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:33 AM
    Tuesday, August 7, 2012 1:55 PM
  • Hi,

    It cannot be enabled automatically. But you can use a script to enable Lync user.

    You can refer to this link:

    http://social.technet.microsoft.com/Forums/en-AU/ocsvoice/thread/731f1868-45fa-4cbb-adfd-acbdd9f4cf56

    The script Sean provided can help to enable AD user to Lync user quickly and also enable enterprise voice for the user and assign a Line URI number to user.


    Regards,

    Kent Huang

    TechNet Community Support

    ************************************************************************************************************************

    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.




    • Edited by Kent-Huang Thursday, August 9, 2012 7:13 AM
    • Marked as answer by Kent-Huang Thursday, August 16, 2012 10:33 AM
    Thursday, August 9, 2012 7:09 AM
  • Hello ,

    This script it works fine but I tried to add  "Set-CsUser -EnterpriseVoiceEnabled $true; " command in order to change the Telephony to 'EnterpriseVoice' ...  but i doesn't works...

    get-Csaduser -filter {Enabled -ne $True} -OU "OU=XXX,OU=XXX,OU=XXX ,DC=XXX,DC=XXX,DC=XXX,DC=XXX"  | Enable-CsUser -RegistrarPool XXX  -SipAddressType SamAccountName -SipDomain XXX.com |Set-CsUser -EnterpriseVoiceEnabled $true;

    if i run it as seperate command like:  Set-CsUser -EnterpriseVoiceEnabled $true  -Identity "contoso\kenmyer" it will work...

    Do you know what i do wrong?

    Thank you

    Thursday, December 14, 2017 2:00 AM
  • you need to use the -PassThru parameter with Enable-CSUser

    get-Csaduser -filter {Enabled -ne $True} -OU "OU=XXX,OU=XXX,OU=XXX ,DC=XXX,DC=XXX,DC=XXX,DC=XXX"  | Enable-CsUser -RegistrarPool XXX  -SipAddressType SamAccountName -SipDomain XXX.com -PassThru |Set-CsUser -EnterpriseVoiceEnabled $true



    Please remember, if you see a post that helped you please click "Vote" on the left side of the response, and if it answered your question please click "Mark As Answer" or "Propose As Answer".

    Thursday, December 14, 2017 2:40 PM