AD Attribute modification

Anonymous
2023-10-31T17:19:06+00:00

Hi

In Active Directory I would like to make a change to the attribute for all users.

In Attribute Editor, there is an attribute msRTCSIR-Line Value is +4412345678;ext=5678

I would like to remove ;ext=5678 from the value but retain +4412345678

Can someone tell me how to achieve this using get ADuser and strip this for all users?

Thanks

Sacha

Windows for business | Windows Server | Directory services | Active Directory

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-01T06:41:55+00:00

    Hello Sacha_Blackwood,

    Thank you for posting in Microsoft Community forum.

    The method in the following link may be helpful to you.

    Use the PowerShell AD Provider to Modify User Attributes - Scripting Blog [archived] (microsoft.com)

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments