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.

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

Please or Register to post comments.

IT/Dev Connections Exchange Server

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• Future Deopyments
and Integrations
• Hybrid Deployments
• Exchange Online
• Windows 8 Deployment
and much more!

Come See Tony Redmond & Mark Minasi in Person!

Early Registration Now Open

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.