Link to home
Start Free TrialLog in
Avatar of James
JamesFlag for Ireland

asked on

Active Directory

Hi Experts Exchange,

When I create new users in AD I need for their User Folder to be created Automatically. I presume that I would need a script for this.

I know you can do this in the profile, but I do not want this to be a manual job everytime a new user is created. I want the user's to be created automatically when they log on for the first time.

Thank you.


Kind regards,

JBond2010
Avatar of Krypton-IT-Solutions
Krypton-IT-Solutions

Hello, try this link http://support.microsoft.com/kb/816313 at the bottom you'll see ways to automate

Regards
[advertising signature removed - modguy]
It depends on how many users are being created and what your current process is for creating user accounts. If you are creating users manaully which it sounds like I would recommend creating a template user account with all the settings you want. One would be the users home drive, just enter the drive letter you want the user to have and the path enter \\servername\sharename\%username%
by using the %username% variable it will create a folder and assign permissions using ADUC. The when you create a new user just copy the template account and the new account will have their own home folder.
Avatar of James

ASKER

@ KenMcF,

Thank you for your comment.

I don't want to use a template. I would be creating a handfull of users on a weekly to monthly basis. So I would prefer to use a script that would automatically create their user when they log-in.
You wil not be able to create the home directory when the user logs in, it will be hard to setup the correct permissions within the home drive share so they do not have access to or are abel to gain access to other users folders.
 Look at the link @kryton-IT posted and also look at using xcacls.vbs.
http://support.microsoft.com/kb/825751
Avatar of James

ASKER

I know other organisations are able to this, it is possible to do this.
usually the home drive is created and secured on user account creation not first logon of the user. In my option that would be the best way to create them. You can create the users either by script or template account.

If you want to have it created on first logon you would need to have the user run a login script, have the path to the home drive. Not sure if it is a single file server or multiple. Give the users permissions to create folders and change the security permissions on them. You can do this by the links provided or useing something like xcacls in the users login script.
ASKER CERTIFIED SOLUTION
Avatar of James
James
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James

ASKER

The comments are welcomed, but didn't provide the solution to the question I posted.