Solved

Deleting SIP ID from AD

Posted on 2014-10-03
6
139 Views
Last Modified: 2014-10-23
I currently have my office on Office 365 with DirSYNC.

We are rolling out Lync online to users. We used to have Office Communicator and the SIP ID are now a part of the users AD account.

I need to clear the current SIP ID in field msRTCSIP-PrimaryUserAddress. I know how to do this manually and Office Communicator was used a long time ago, but there are about 400 updates I would need to perform.

With DirSYNC the accounts in Office365 are locked out so the changes must be made locally and Synced up to the cloud.

I'm fairly new to scripting, so I am just starting to get the hang of things.

Thanks.
0
Comment
Question by:Mike Streett
  • 3
  • 2
6 Comments
 
LVL 16

Accepted Solution

by:
Joshua Grantom earned 333 total points
Comment Utility
One liner

Import-Module ActiveDirectory ; Get-ADObject -LDAPFilter “(msRTCSIP-PrimaryUserAddress=*)” | ForEach-Object {Set-ADObject -Identity $_.DistinguishedName -Clear “msRTCSIP-PrimaryUserAddress”; “Removed $($_)”}

Open in new window

0
 

Author Comment

by:Mike Streett
Comment Utility
This is great, thanks.

Just to be on the safe side what would the command be to just run it on one OU at a time.

Such as C3i TestContainer?
0
 
LVL 12

Assisted Solution

by:Jeff_Schertz
Jeff_Schertz earned 167 total points
Comment Utility
Add the following argument after the Get-ADObject cmdlet:

-SearchBase "OU=someOU,DC=contoso,DC=com"

or if it's a default AD container (and not an OU) then:

-SearchBase "CN=Users,DC=contoso,DC=com"
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 16

Assisted Solution

by:Joshua Grantom
Joshua Grantom earned 333 total points
Comment Utility
Sorry about that Mike, I didn't even notice that you asked an additional question, Jeff is correct though.

Import-Module ActiveDirectory ; Get-ADObject -Searchbase "CN=Users,DC=DOMAIN,DC=COM" -LDAPFilter “(msRTCSIP-PrimaryUserAddress=*)” | ForEach-Object {Set-ADObject -Identity $_.DistinguishedName -Clear “msRTCSIP-PrimaryUserAddress”; “Removed $($_)”}

Open in new window


an easy way to find the searchbase is to right click an OU or container, go to Properties > Attribute Editor, and find the distinguishedName.

In order to see the Attribute Editor, you need to have "Advanced Features" enabled from the View menu in ADUC.
0
 

Author Comment

by:Mike Streett
Comment Utility
Thanks for the help everyone. It's nice to have some other techies to talk with.
0
 
LVL 16

Expert Comment

by:Joshua Grantom
Comment Utility
You're welcome Mike,

I know how you feel.
0

Featured Post

Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now