none
script enable users for Lync RRS feed

  • Question

  • Hello all

     

    Running Lync 2010 Enterprise in a consolodated environment. Is there a script available that will allow me to enable users for Lync then create the users sip address based on the users primary email address? and the same thing but if the users primary email address is user@mydomain.com  create a sip address for the user as user@internaldomain.com

     

    Thanks very much


    Bulls on Parade
    Tuesday, March 15, 2011 7:08 PM

Answers

  • Powershell script that runs with task scheduler:

    import-module 'C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1'
    get-csaduser -filter {Enabled -ne $True} -OU "ou=Employees,dc=company,dc=com" | Enable-CsUser -RegistrarPool lyncpool.company.com -SipAddressType EmailAddress

    With a little script logic you should be able to achieve the second request.

    Tuesday, March 15, 2011 9:27 PM

All replies

  • Powershell script that runs with task scheduler:

    import-module 'C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1'
    get-csaduser -filter {Enabled -ne $True} -OU "ou=Employees,dc=company,dc=com" | Enable-CsUser -RegistrarPool lyncpool.company.com -SipAddressType EmailAddress

    With a little script logic you should be able to achieve the second request.

    Tuesday, March 15, 2011 9:27 PM
  • You just saved my $%$#$! thank you!
    Bulls on Parade
    Tuesday, March 15, 2011 10:07 PM