I need to create several organizational units in an existing one by import CSV file, using the command new-adorganisationalunit.
By using this command new-adorganisationalunit -name -path I can create just one at once, how can I use this with import-csv?
I'm new at scripting, can you help me?
You'll need to map the appropriate properties (column name) to the appropriate parameter (-Parameter $Obj.ColumnName). I don't have a working example right now, but this should get you started if you want to learn. Let us know if you have any questions.