How to import single value .csv into multi value custom attribute?
hello,
i need import single value attribute .csv (just number, ex. 5457543), „custom“ multi value attribute
(ex. myfield1)
this line; import-csv .\import.csv | foreach-object {set-adcomputer -identity $_.name -myfield1 $_.myfield1} , error ;
set-adcomputer : parameter cannot found matches parameter name ' myfield1 '.
at line:1 char:76
+ import-csv .\import.csv | foreach-object {set-adcomputer -identity $_.name -myfi ...
+ ~~~~~
+ categoryinfo : invalidargument: (:) [set-adcomputer], parameterbindingexception
+ fullyqualifiederrorid : namedparameternotfound,microsoft.activedirectory.management.commands.setadcomputer
set-adcomputer : parameter cannot found matches parameter name ' myfield1 '.
at line:1 char:76
+ import-csv .\import.csv | foreach-object {set-adcomputer -identity $_.name -myfi ...
+ ~~~~~
+ categoryinfo : invalidargument: (:) [set-adcomputer], parameterbindingexception
+ fullyqualifiederrorid : namedparameternotfound,microsoft.activedirectory.management.commands.setadcomputer
i think needs type of array, can't figure out, help?
Comments
Post a Comment