Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Usually I create a new user, then set the home folder, logon script, etc...

Is it possible in Active Directory when I create a new AD user object, that it goes out to my share drive and automatically creates a folder for them (naming it their username), and then assigns that folder as their home drive?

It would also be helpful if it would automatically assign them a specific logon script at user creation too. Thank you!

share|improve this question
up vote 2 down vote accepted

When you create or edit the user in the AD console, you can assign a home directory to their profile.

By using the %username% variable (e.g. \\servername\sharename\%username%) you can get it to automatically name according to the user name.

You can also use the DSMOD command to script creation, directory assignment, and many other tasks. A good explanation of using this command for home directory assignment (including for multiple users) is here.

share|improve this answer
Ok I set this up in Active Directory, and it isn't creating the folder if it doesn't exist. I create the folder manually and it still doesn't map the drive. I chose I: as the letter and used \\servername\share\%username% for the path and it won't work. Even when the folder exists. I can path out to that share no problem on the machine. – drpcken Jan 2 '11 at 21:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.