Copy AD user and auto create home directory

Posted on 2007-08-06
Medium Priority
Last Modified: 2013-11-05
Hi experts

Could you please help me with this.

Running a full windows 2003 AD network.

I have created a new account with custom settings (newuser1) such as home drive, login scripts, profile locations etc. When I go to copy the user it simply does just that. What I would like is a way to automaticaly create newuser2, newuser3 and so on but when it copies home drives to use %username% as each user will have its own share for login scripts and profile locations.

Hope this makes sense, if you need more information please do ask.

Many thanks

Question by:museudf
  • 3
  • 2
LVL 31

Expert Comment

by:Toni Uranjek
ID: 19637880

Did you enter profile and home folder path with %username% variable? For example: \\server\share\%username% ?
Did you create appropriate shares?

LVL 31

Expert Comment

ID: 19637885

Author Comment

ID: 19638343
Hi all

Thanks for the quick reply. I have tried using \\server1\%username% but it is unable to find the folder. I was hoping that AD would create the folder for me. Please let me know Toni.

Many thanks for your help so far.

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

LVL 31

Expert Comment

by:Toni Uranjek
ID: 19638389
You have to create shared folder yourself. One for profiles one for homefolders. Share each folder with Everyone Full Control. Only the will subfolders be created. If needed, you can change share permissions to tighten up security to (for example) Authenticated user Full Controll Allow.

Author Comment

ID: 19638471
So if I create a top level share called "home dir" and then use \\servername\home dir\%username" AD will create a new folder within home dir with the same name as the user
LVL 31

Accepted Solution

Toni Uranjek earned 1000 total points
ID: 19638492
Yes, everytime user is created with copy function in AD, new folder will be created for him with appropriate NTFS permissions. I suggest that you choose folder name "users", which is common for home folders.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question