General discussion

Locked

Creating Home Directories

By Jon Pratt ·
Okay here's my situation; I need to batch load home directories for about 3500 Win2k accounts. Easy enough, except, I need administrators to be able to access these home directories. Now, if I manually set the "Home Folder" attribute in an AD account it will create the home directory according to the convention \\servername\sharename\%username% and add the administrators of the server that hosts the directories into the ACLs along with the user (which is exactly what I need). Unfortunately this would require going into each account and setting the Home Folder attribute manually. I wish to automate the creation process for these home directories since not only do I need to create a sizeable amount of accounts, 3500, but I will be creating/deleting these accounts on a regular basis (educational environment, students come and go). I have tried employing the addusers.exe utility, which scripts in the accounts along with the appropriate home folder and profiles attributes but the homedirectory is not created when it scripts it in (for some reason AD doesn?t parse the user attributes of scripted accounts like it does when you create them through AD Users and Computers, all properties are assumed to already exist). Folder redirection appears to be out of the question because its only permission options are "Grant exclusive rights to the user"=TRUE/FALSE and I cannot have everyone able to get in to each others home directories and likewise I need admins to have access to the folders. So to sum up, I need a way of automating the creation of home directories with the appropriate NTFS permissions, namely Useraccount=Fullcontroll and Administrators=Fullcontrol (a vbscript would be ideal). Hopefully this makes sense. If not please let me know and I?ll clarify what I'm looking for. Thank you all for your help.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Creating Home Directories

by mgonzales In reply to Creating Home Directories

There is a utility in the resource kit that will allow security to be set via a script. Of course I do not remeber what the program name is but contact me directly and I will research it.

Good Luck!

Collapse -

Creating Home Directories

by Jon Pratt In reply to Creating Home Directories

Poster rated this answer

Collapse -

Creating Home Directories

by Joseph Moore In reply to Creating Home Directories

XCACLS.exe is the file in the Resource Kit that will let you script user permissions on folders/files. You can add multiple users with different security permissions.
So, you could make a big BAT file with all of the directories, user accounts andyour admin account, apply all of the settings, then do some copy/pasting to get it all looking right. Have the BAT file call XCACLS with all of these parameters.

You could also make a delete user BAT file, with the BAT command-line variables %1, %2 etc.

This is just a general layout of what you could do. Give me a shout if you want some BAT file specifics.

Lastly, here is a URL to get XCACLS from Microsoft:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/xcacls-o.asp
(please remove any spaces)

Hope this helps.

Collapse -

Creating Home Directories

by Jon Pratt In reply to Creating Home Directories

Brilliant!! I've actually used xcacls b/4 but I just didn't think of it for this scenario. I was thinking along the lines of the perms being established at the same times as the folder but I can script in the folders and then use xcacls to do the rest. Thanx for the help!!

Collapse -

Creating Home Directories

by Jon Pratt In reply to Creating Home Directories

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums