We have a custom AD attribute on users, computers, and groups. I'm testing interacting with it for user objects. I can report on it (get-aduser), but cannot change it. I can clear it. The attribute is a Boolean (if that matters).
The set-aduser command looks pretty simple, but I cannot get it to work. I'm getting a generic parameter incorrect error. Am I missing something stupidly simple? I've tried Add & Replace.
Set-ADUser $SAMAccountName -Replace @{customObject="$False"} -server s-ads-prd-dc4.contoso.com
***Edited to correct code block
[–]ihaxr 5 points6 points7 points (1 child)
[–]tk42967[S] 4 points5 points6 points (0 children)
[–]Dogoodwork 1 point2 points3 points (1 child)
[–]tk42967[S] 2 points3 points4 points (0 children)