Remove Lync-Specific Attributes for Users

You removed Microsoft Lync then reinstalled a new Lync into your environment--but you still need to remove users' Lync-specific attributes.

John Savill

February 23, 2013

1 Min Read
Remove Lync-Specific Attributes for Users

Q: I removed Microsoft Lync from my environment but my new Lync thinks users already have Lync configuration--how can I remove the Lync-specific attributes for users?

A: If in a lab or perhaps a failed production Lync deployment, you enabled users, then didn't remove the users from Lync before deprovisioning the Lync server, the users will keep their Lync attributes. If you try to add users to the new Lync server, they won't be listed because their attributes are already populated.

The Windows PowerShell command below removes the Lync attributes from all users in the domain, so use this only in a lab environment or when you're absolutely sure that Lync has been removed in your environment.

get-aduser -filter {msRTCSIP-PrimaryUserAddress -like "*"}|set-aduser -clear msRTCSIP-PrimaryUserAddress,msRTCSIP-PrimaryHomeServer,msRTCSIP-UserEnabled,msRTCSIP-OptionFlags,msRTCSIP-UserPolicies

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like