How to use batch file to give a folder permission to the Everyone group
57,289
No need to put :r
after /grant
. Check the examples by typing icacls /?
Do like this:
icacls "C:\Program Files (x86)\Program File" /grant Everyone:M
Author by
rangerr
Updated on July 17, 2022Comments
-
rangerr almost 2 years
Im trying to add the group
Everyone
and give itmodify
permissions on a folder. Im using a batch file to try this. so for I haveicacls "C:\Program Files (x86)\Program File" /grant:r Everyone:M
But when I go and look at the permissions on the folder nothing has been changed. -
rangerr almost 10 yearswill this add the permission on the folder? or only on files?
-
Sunny almost 10 yearsIt'll provide the permission on
Program File
folder. -
rangerr almost 10 yearsSo if the Everyone isn't previously on the folder permissions will it add it?
-
Sunny almost 10 yearsYes, It'll grant
MODIFY
permission to groupEveryone
.