Batch file for share permissions

S

Shane

Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?
 
P

Pegasus \(MVP\)

Shane said:
Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?

Under Windows 2003 server you can use "net share".
Under previous Windows OSs you can youse setacl.exe
(www.SourceForge.net) - if you can wrap your mind
around the terribe user interface. Good luck!
 
P

Pegasus \(MVP\)

Shane said:
Hi

I am looking for a way to change share permissions on folders via a batch
file . I have found xcacls works fine for security but not shares (as far as
I can tell). Any ideas?

A much better alternative is to set the share
permissions to "Full Control" for everyone and
apply appropriate NTFS restrictions. They are
vastly superior anyway!
 

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