set-aduser username -EmailAddress username@domain.com
The custom attribute I created was EmployeeDOB so I ran the same command but the property was not recognized. After some research and help from the Technet forums, I was introduced to the following options:
set-aduser username -Add @{EmployeeDOB='5-1-1978'}
set-aduser username -Replace @{EmployeeDOB='4-1-1980'}
set-aduser username -Remove @{EmployeeDOB='4-1-1980'}
With this new knowledge, I can now hopefully save some time by not having to manually edit these values within ADUC!!
Legen-wait for it-dary.
ReplyDeleteThanks so much, was struggling with this for ages
I am glad this was helpful!
ReplyDeleteThanks! This helped me when scripting a custom AD attribute of remoteOfficeLocation. Perfect.
ReplyDeleteThanks a lot, this helped me a lot
ReplyDeleteOur client uses these LDAP fields a lot for integration with other tools - big help now I can update these en-masse, couldn't find the command anywhere!
ReplyDeleteI am glad this has been helpful to people!
ReplyDelete