Permissions Batch File

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
 
K

Karl Levinson [x y] mvp

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top