Use of CACLS in batch files

  • Thread starter Thread starter Darin Georgeson
  • Start date Start date
D

Darin Georgeson

I am trying to automate a process where I eliminate
certain users/groups from having access to a file. I
have used the following command in a batch file, but just
get a "help" message back, and the command doesn't
execute. Any thoughts on how, or even if, this can be
done via a batch file?

CACLS "c:\some folder" /T /E /C /R "Users" "Power
Users" "Creator Owner"

The command removes the groups Users, Power Users, and
Creator Owner from the ACL of a folder.
 
Back
Top