Permissions Batch File

  • Thread starter Thread starter SLingerUK
  • Start date Start date
S

SLingerUK

Dear all

I have been given the task to create a folder structure and permissions on
the structure (easy enough!!!). Problem being there are some 5000 folders
to be created and permissions applied to!!!

The folder structure has been created but I still need to apply the
permissions to the folders. Can anyone give me any ideas on how I can
create a batch file to create the permissions? Here are some details on
what I need to be able to do.

The Folder Structure is on Four Levels (ie e:\level1\level2\level3\level4).
Everyone gets read only access to all folders (already done... that was the
easy bit). I need to be able to grant MRLRW permissions at levels 3 & 4 and
just to confuse matters I need to be able to grant permissions to create
files but not folders (which again I can do through the GUI but don't know
if it can be done through a batch file).

I hope that is all clear. Thanks in advance.

Steve
 
This can be done via a batch file. Use the CACLS or XCACLS command. Type
CACLS /? for more information. In most cases you will want to use CACLS
foldername /t /e /c /g userorgroupname:permission
 
Back
Top