Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Set Custom Attributes in Active Directory

$
0
0

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”}


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>