none
Is there a way to clear the AD attribute 'msRTCSIP-OriginatorSID' for all the users in particular OU? RRS feed

  • Question

  • Is there a way to clear the AD attribute 'msRTCSIP-OriginatorSID' for all the users in particular OU?

    Also Is there a way to clear AD attribute 'msRTCSIP-OriginatorSID' for particular users in the OC?

    We have about 3000 users in the OU and wants to clear this attribute for 1500 users and keep it for 1500 users. 

    MUCH THANKS.





    • Edited by SBHV Friday, December 13, 2013 11:23 PM
    Friday, December 13, 2013 11:18 PM

Answers

  • According to my understanding, you can use powershell to clear the AD attribute firstly.

    Then you need to create a script to clear the AD attribute in particular OU.

    But how exactly is the command, I would advise you to consult the AD expert.


    Lisa Zheng
    TechNet Community Support

    Monday, December 16, 2013 7:00 AM
    Moderator

All replies

  • According to my understanding, you can use powershell to clear the AD attribute firstly.

    Then you need to create a script to clear the AD attribute in particular OU.

    But how exactly is the command, I would advise you to consult the AD expert.


    Lisa Zheng
    TechNet Community Support

    Monday, December 16, 2013 7:00 AM
    Moderator
  • Tuesday, December 17, 2013 3:18 AM
  • With powershell you can do this using

    Set-ADUser -Clear msRTCSIP-OriginatorSid

     To make the change for subset of users in an OU you can do something as follows

    #Get the collection of all users in the OU

    $UsersToChange = Get-CsADUser -SearchBase "OU=NewUsers,DC=uc,DC=com" -Filter *

    #Only select last 1500 Users from the collection

    $UsersToChange.RemoveRange(0,1499)

    ForEach($User in $UsersToChange)
    {

    Set-ADUser -Clear msRTCSIP-OriginatorSid

    }

    -Santosh


    • Edited by Santosh_More Wednesday, December 25, 2013 4:14 AM
    Wednesday, December 25, 2013 4:14 AM
  • What is the command for just one specific user?

    • Proposed as answer by DumbleD0re Tuesday, June 25, 2019 3:58 PM
    • Unproposed as answer by DumbleD0re Tuesday, June 25, 2019 3:58 PM
    Wednesday, September 13, 2017 6:51 PM
  • In response to DocAuto above - re Single User:

    One way is to get the user and set:

    get-aduser -LDAPFilter "(&(samaccountname=<samaccountname>))" | set-aduser -clear msRTCSIP-OriginatorSid

    Another way:

    set-aduser -identity <samaccountname> -clear msRTCSIP-OriginatorSid

    Where <samaccountname> should be replaced with the user's pre windows 2000 login name:

    eg; if it were smithj:

    set-aduser -identity smithj -clear msRTCSIP-OriginatorSid


    Monday, June 24, 2019 3:11 AM