Re-Enable Previous Lync Users

I have a strange issue with my new Lync 2013 environment.  I had previously deployed a test environment for Lync 2013 as a proof of concept.  Once it passed with administration, I decided I would restore my Lync VMs back to a pre-Lync state using snapshots.  I then reinstalled Lync, taking advantage of my lessons learned during the first build.  I'm more than happy with the new environment, except for one thing.  When I go to enable Lync users, the users that I enabled in the proof of concept days cannot be found.  I have decided that this probably has something to do with the fact that Lync thinks these users are already Lync-enabled users.  I'm guessing that Lync writes some attributes to a user's AD account when it enables it for Lync.  Does anyone have experience with this, or know how I can "reset" these previously enabled accounts to work in my new environment?
LVL 1
marrjAsked:
Who is Participating?
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
You are correct. When you enable the link users it modifies the attributes on the Active Directory account. When you try and find users that you want to enable, as you have stated if they are enabled they will not appear as it only shows users that do not exists.

You can use the below powershell commands to view all of the currently enabled Lync Users.

get-CSUser | ft DisplayName, SipAddress, RegistrarPool, ExternalAccessPolicy

Open in new window

The commnd above will get all of the Lync Enabled users in your domain.

Once you have the list of users that are Lync Enabled you can use the below Syntax to disable each user you want...

Disable-CSUser -identity <name>

Open in new window



All of the above commands need to be run on the Lync Powershell Console.

Just another comment...
When you are looking at the AD users properties using commands like get-aduser -properties * if the user has AD Properties showing for anything that starts with "msRTCSIP" then they are Lync enabled users.

Will.
0
 
marrjAuthor Commented:
Thank you very much, Will.  This worked like a charm.  I had seen the RTC atributes on my user object and suspected that they were the Lync attributes, but I wasn't sure about how to "properly" remove them.
0
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.