Enable Users in Lync 2013 Server via Group Membership

I want to run a script that will evaluate group membership then enable to use in the Lync server. However, I want to first check to see if the user is already enabled (to prevent errors). Perhaps the two commands below can be combined in some way?

Get-ADGroupMember -Identity <ADGroup> | Enable-CsUser -RegistrarPool lyncpool.treyresearch.net -SipAddressType EmailAddress

Get-csaduser -filter {Enabled -ne $True}  | Enable-CsUser -RegistrarPool lyncpool.treyresearch.net -SipAddressType EmailAddress
Anthony K O365Asked:
Who is Participating?
Jakob DigranesSenior ConsultantCommented:
Anthony K O365Author Commented:
That helped!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.