dsadd doesn't create users' homedirs

A

Arnfinn Vartdal

I create users from a database by creating a batch file containing records
like this:

dsadd user CN="Matias Ytterland",OU=OUElevar,DC=dm-ourdomain,DC=local -samid
04matias -upn (e-mail address removed) -fn "Matias" -ln
Ytterland -display "Matias Ytterland, 8a" -desc "Klasse 04a" -memberof
CN=04a,OU=OUElevar,DC=dm-ourdomain,DC=local -email
(e-mail address removed) -hmdir \\ourserver\elevar$\04\04matias -hmdrv
z: -profile \\ourserver\profiles$\elevar\04\04matias -canchpwd no -pwd
werqaore -pwdneverexpires yes



Problem: The directory \\ourserver\elevar$\04\04matias is not created.

If i open the account in "Active Directory Users and Computers" and change a
letter so I can use the "Apply" button, the directory is created.

Domain, OU and groups are created in advance.

Directory \\ourserver\elevar$ is created as a share where administrators
have full control



Where do I go wrong?



Arnfinn
 
T

Tomasz Onyszko

Arnfinn Vartdal wrote:

Where do I go wrong?
You do this OK. I don;t use dsadd a lot becous I use my own user
creation scripts but I supose this works like adsi interface, this will
create user entry and fill user properites with correct data but for
folder creation You have to take care by yourself - for example by
simple mkdir \\server\users\folder
 
J

Joe Richards [MVP]

Because ADUC has this functionality built into it, it isn't a function of
Windows itself. DSADD is a light command line client which just doesn't
implement that feature. You are able to script it however if you would like that
capability.

joe
 

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