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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Server 2003 map user directory

Status
Not open for further replies.
May 9, 2006
232
US

Can anybody please tell me how I can set up home directory mapping in Group policy in win 2003 server.

I have shared directory on the server named "personal storage" with full rights to all domain users, this is where I want users folders to be created automatically using their user name for the folder name the first time they login to the network (once the folders gets created automatically they should be the owner of the folder with full rights and nobody else should have access to it, unless admin takes ownership) I want users to see their user name directory mapped to a drive letter when they log on(i.e P:\personal storage\%username%.

I know how to do it in user profile, but I want to be able to do it GP. So far a i have the vbs script below

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "O:" , "\\myserver\docs

I want to add lines to this script to map user personal storage directories, the "O" drive should still remain and contiue to be mapped automatically. Any help would be great, Thanks
 
This is the wrong forum for this question. You should post in the vbscript forum.

I've done this with vbscript. Your task will be accomplished using the following:

1. Use the FileSystemObject to create the folder.
2. Use the Shell object to run NET SHARE command to share the folder and assign share permissions.
3. Use XCACLS to set the NTFS permissions to block other users from accessing the folder.

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.
 
Thanks for the response however I do not know any of those commands or what they mean I will post in VBS section
 
I recommend that you do a little searching with Google before posting. You can find many examples of how to do each of the above.

I recommend you begin at to look up the FileSYstemObject and to learn how to create folders.

Before posting in the vbscript forum, be prepared to show what you have done so far. You should make yourself familiar with vbscript first.

Regards,

Mark

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