Windows AD, bulk user creation, homedrv creation via commandline

Posted by Neil on Server Fault See other posts from Server Fault or by Neil
Published on 2009-10-19T14:52:32Z Indexed on 2010/04/01 17:53 UTC
Read the original article Hit count: 438

Filed under:
|

I am Bulk creating AD users from the commandline (dsadd) and whilst doing so am setting the homedir and homedrv to a DFS location. I observe when I create the user with all these settings via the GUI (dsa.msc) that the homedrv gets created on the DFS share with all the permissions set correctly. But when using dsadd, the folder is not created. How can I replicate this GUI behaviour via the commandline when creating the user?

I don't really want to rely on logon scripts to set it up. Do I have to use mkdir and cacls and something else to give the user Ownership? Or maybe I am missing something easy.

Any help much appreciated!

© Server Fault or respective owner

Related posts about Windows

Related posts about active-directory