This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Importing value to edsvaSecondaryOwners

I have a csv file with 2 columns, samaccountname and edsvaSecondaryOwners (in DN format, and it points to a separate account not equal to the samacountname in the same file).

Trying to read the csv file, and import the edsvaSecondaryOwners value in the file to the attribute edsvaSecondaryOwners of the target samaccountname.  But it doesn't work.  No error message, instead it listed the accounts that I am trying to change, and the actual DN of the account (not the value that I want to set to .. I am stupid here.  Please help.  

Here is the command that I ran:

import-csv .\secondaryOwners.csv | foreach {set-qaduser $_.samaccountname -objectAttributes @{edsvaSecondaryOwners=@($_.edsvaSecondaryOwners)}}