Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create User Directory and Set Permissions

Status
Not open for further replies.

ZipperHeadMan

IS-IT--Management
Apr 21, 2005
58
CA
Hi,

I'm trying to streamline user account setup in my organization.

What I'm trying to achive is a simple way to create the users home directory and assign NTFS permissions to that folder. Per new user account of course.

Environment:
Windows Server 2003 with XP Pro w/SP2 clients.

Users home directories are located on the server in the following location:

\\%SERVERNAME%\DATA\USERS\%USERNAME%\HOME

If you could shed light on a script or options in AD, perhaps a template?

Your help is appreciated. THANKS

 
One way is to create a template with the common settings and just copy it.

Patrik
 
I do this with vbscript.

Use the FileSystemObject to create the directory.
Use XCACLS to set NTFS permissions.
Use NET SHARE to create a share or hidden share.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top