Script File to Asssign Share Permissions

  • Thread starter Thread starter Luis I. Gomez
  • Start date Start date
L

Luis I. Gomez

I have setup a group of folders based on the various users on my system. As it turns out, there are 300+ users that need to be assigned.

The task is to assign a particular set of rights so that each user is able to view only their own folder.

I would like to automate the procedure so that it can be moved to another domain without spending several hours doing it one folder at a time.

Is there an automation solution. Perhaps a command line program or some other script?
 
Check this out:
http://msdn.microsoft.com/library/d...g_a_domain_user_or_group_to_a_local_group.asp

You can write your own script from this sample.
You also could you the "for" command to read usernames and groups from a files.

Shai.
I have setup a group of folders based on the various users on my system. As it turns out, there are 300+ users that need to be assigned.

The task is to assign a particular set of rights so that each user is able to view only their own folder.

I would like to automate the procedure so that it can be moved to another domain without spending several hours doing it one folder at a time.

Is there an automation solution. Perhaps a command line program or some other script?
 
Back
Top