MEA Center of Expertise

We are a 120+ technology enthusiasts helping Microsoft customers around Middle-East & Africa region. We bridge Microsoft tools & technologies to their businesses.

Powershell Script get group members and check for users that are not enabled for lync and enable these users using e-mail address

Powershell Script get group members and check for users that are not enabled for lync and enable these users using e-mail address

  • Comments 1
  • Likes

#This script get group members and check for users that is not enabled for lync and enable these users using e-mail address (PC to PC not enterprise voice)

01 Import-Module activedirectory
02 Import-Module lync
03 $groupmember = Get-ADGroupMember lync
04 foreach ($member in $groupmember)
05 {
06 $aduser = Get-CsAdUser -Identity $member.Name | Where-Object {$_.enabled -ne "true"}
07 if($aduser -ne $())
08 {
09 Enable-CsUser -identity $aduser.identity -RegistrarPool lyncse.coex.com -SipAddressType emailaddress
10 }
11 }
Comments
  • Excellent. Saved my time. Thanks

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment