Folder Rights

  • Thread starter Thread starter M Karthik
  • Start date Start date
M

M Karthik

Hi,

My name is Karthik and I am a Team Member in the Sys Admin
team of a company having 600 PCs.

I need to create about 100 Shared Folders and give share
permissions to around 200 Users. Can I use some script to
do so or is there any command to accomplish this task.

Thanks,

Karthik
 
You don't say if the 200 users you want to grant permissions to are the same
200 users for all shares or if all the shared folders have different user
permissions, however assuming they are the same if you put the users in a
security group you could do the following

on the server that hosts the share
in a command file

REM Create the folder you want to share
MD SHAREDFOLDER
REM share the folder
NET SHARE sharename=DRIVE:\SHAREDFOLDER
REM set the permissions
XCACLS SHAREDFOLDER /T /G DOMAIN\SECURITYGROUP:C /Y (to give the users
change permissions)
 
Back
Top