Active Directory: QuestAD tools, modifying custom attributes

Topics: General
Apr 10, 2013 at 7:18 PM
Hi there guys, quick question.

My org has a few custom attributes for user objects and I need a way to mass change them.

I did find a solution which worked for modifying one of them, but not the other. I will paste both commands.

First, I use a get -qaduser and grab a list of users in an OU, then I pipe it to the following command

works: set-qaduser -objectAttributes @{division=@('name here')}

doesn't work: set-qaduser -objectAttributes @{DLX-Account-Type=@('account type here)}

The resulting error is this.

Missing '=' operator after key in hash literal.
At line:1 char:106
  • get-qaduser -SearchRoot 'NAMEl' | set-qaduser -objectAttributes @{DLX-Account-Type=@ <<<< ('RFT)
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : MissingEqualsInHashLiteral
I've run out of ideas, any takers?