Can CSVDE create OU's

E

Eric B. Twing

I can set up the CSV file to import and modify user accounts but I need to
first create the OU's the users will go into. What does the basic header and
data look like. The objectClasss column returns errors when using "ou" for
the entry and "organizationalUnit". I can find no examples of how CSVDE
imports OUs (just the containers).

Thanks
Eric Twing
 
T

Tony Murray [MVP]

You can use CSVDE to create a new ou. The following is
an example of the syntax of the import file to create a
new ou named OU2 in the root.dom domain:

DN,instanceType,distinguishedName,objectCategory,objectCla
ss,ou,name
"OU=OU2,DC=root,DC=dom",4,"OU=OU2,DC=root,DC=dom","CN=Orga
nizational-
Unit,CN=Schema,CN=Configuration,DC=root,DC=dom",organizati
onalUnit,OU2,OU2


You should be aware that you cannot use CSVDE to modify
existing objects. You can only use it to create
objects. Have a look at LDIFDE which can do the
modifications.

Tony
MVP Active Directory
www.activedir.org
 
E

Eric B. Twing

Thanks. That did the trick!

Eric Twing


Tony Murray said:
You can use CSVDE to create a new ou. The following is
an example of the syntax of the import file to create a
new ou named OU2 in the root.dom domain:

DN,instanceType,distinguishedName,objectCategory,objectCla
ss,ou,name
"OU=OU2,DC=root,DC=dom",4,"OU=OU2,DC=root,DC=dom","CN=Orga
nizational-
Unit,CN=Schema,CN=Configuration,DC=root,DC=dom",organizati
onalUnit,OU2,OU2


You should be aware that you cannot use CSVDE to modify
existing objects. You can only use it to create
objects. Have a look at LDIFDE which can do the
modifications.

Tony
MVP Active Directory
www.activedir.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top