PowerTip: Set Custom Attributes in Active Directory

PowerTip: Set Custom Attributes in Active Directory

  • Comments 9
  • Likes

Summary: Use the Set-ADUser cmdet to modify custom attributes.

Hey, Scripting Guy! Question How can I use Windows PowerShell to modify a custom attribute in Active Directory?

Hey, Scripting Guy! Answer Use the Set-ADUser cmdlet and it’s –add-replace, and –remove parameters to adjust custom attributes.

For example, to update the Info attribute in Active Directory and replace it with a new value:

SET-ADUSER john.smith –replace @{info=”John Smith is a Temporary Contractor”}

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Helpful for IDM (Identity Management Team)

  • Excellent, very helpful!

  • Thanks alot!

  • Awesome I needed this thank you!