Enable multiple Active Directory users for Lync/Skype for Business through management shell

User management for any enterprise business class application is a key. This kind of task comes under administration but some time implementation team also perform these activities. This post provides a little help to the implementation consultant or UC administrator.  To enable group of users for Lync/Skype for Business is very common but through control panel you can enable maximum 5000 users at a time and you may have to try the same thing multiple time if any error occurs.  If we try the same thing through Skype for Business server management shell, we can easily perform the task in better way and there is no limit 🙂

If you want enable multiple users with a specific commonality between them, you can use LDAPFilter to the same.

For example: I have common name between all the users. You can have common “Department”, “OU” or something else which can be used to filter the users.

Get-CsAduser -LDAPFilter “(name=sfb*)” | Enable-CsUser -RegistrarPool “poolfqdn” -SipAddressType EmailAddress

This is just an example, you can do even much better scripting using LDAPFilter.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s