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

Automate the creation of shares?

Status
Not open for further replies.

dan

MIS
Joined
Oct 7, 1998
Messages
298
Location
US
Is is possible to automate the creation of shares through a batch or script file?
Or some other way?
 
NET SHARE

has to be run on the machine that will hold the share, and you have to create the folder first. (but that can be scripted as well)
 
This is what I am looking for. I want to create home directories for 100s of students. Creating the share with NET SHARE worked well. I can set the permissions with CACLS. However, The permissions for the new share permit everyone to map to the share. Can I also script the permissions for the share so that only the user can map to his/her own share? (Similar to the way I have scripted the file permissions). Thanks for such a quick response!
Dan
 
Would a roaming profile work? The calss I worked on had it setup where everyone has a X: drive mapped to the server in a \\servername\files\%username% . I have heard that you can do with to all the profiles in a certain OU with batch files.
 
I can map the users through the logon script to \\server\users\%USERNAME%. The problem is I have to manually create the shares. We used Novell last year which automatically created the home directory when the user was created. I am looking for something comparable.
Dan Dan
 
It's in the users profile. It automatically creates the mapping of X: or Z: or whatever letter you choose to \\servername\users\%username%. It creates the folder on the server's hd and everytime the user logs in it makes the mapping for them. I think the tool to make a batch file to do it is located in the 2k Server Resource Kit. I may be wrong on that one.
 
We are currently not using Profiles. Most of our clients are Win98. A few will be XP. Some students might login from an XP machine in their dorm and a W98 machine in the lab. I need a solution that will work across both platforms.
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top