Tuesday, December 6, 2011

Enable all email users on Lync with a one liner

Here's a quick hit:  You have your users in Active Directory, you have Exchange, you just installed Lync.  How can you quickly give everyone with an email address a matching Lync account?

In the Lync Server Management Shell (which is just Powershell with the Lync modules loaded) all one line:

Get-CsAdUser | Enable-CsUser -SipAddressType EmailAddress -RegistrarPool "FQDN_of_your_Lync_server_or_pool"

That's it!  Every user with an email address in AD will have a lync account, but it will skip (error out really) all the service accounts or other accounts that don't have email.

No comments:

Post a Comment