Windows AD, bulk user creation, homedrv creation via commandline
- by Neil
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!