Re: batch file for share permissions



In microsoft.public.win2000.cmdprompt.admin Bertoldino wrote:

Shane wrote:
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?

search for "subinacl" :-)

but i remember something about win2003server... there is a
native command, right?

Thinking of regini.exe?
If that is included in other than a Resource Kit.
SUBINACL is better than regini from NT4 and 5.0 IMO.

.



Relevant Pages

  • Re: Script to check individual permissions
    ... You can try this batch file. ... echo Compiling a directory listing ... I want to clean up the permissions on my fileserver. ... only displays that folders with permissions set to individual users. ...
    (microsoft.public.windows.file_system)
  • Using cacls versus Gui properties->permissions
    ... I've been using a batch file to assign bulk permissions for the iis ... folders, which uses cacls to edit the permissions. ...
    (comp.os.ms-windows.nt.admin.security)
  • folder permisson commands
    ... permissions to ... different folders that will be separately accessed by ... students. ... Is it possible to setup a batch file that ...
    (microsoft.public.win2000.security)
  • Permissions Batch File
    ... I have been given the task to create a folder structure and permissions on ... Problem being there are some 5000 folders ... if it can be done through a batch file). ...
    (microsoft.public.win2000.security)
  • xcacls removes permissions, inheritance puts them back
    ... I have used xcacls in a batch file to create several hundred folders and set ... I removed a set of permissions which they had all ... inheritance is still in place the permission is 'put back in again'. ...
    (microsoft.public.win2000.security)