Im trying to add the group Everyone
and give it modify
permissions on a folder. Im using a batch file to try this. so for I have icacls "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.
Asked
Active
Viewed 6.3k times
14

rangerr
- 261
- 2
- 5
- 13
1 Answers
20
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

Sunny
- 7,812
- 10
- 34
- 48
-
will this add the permission on the folder? or only on files? – rangerr May 08 '14 at 12:01
-
It'll provide the permission on `Program File` folder. – Sunny May 08 '14 at 14:46
-
So if the Everyone isn't previously on the folder permissions will it add it? – rangerr May 08 '14 at 15:48
-
Yes, It'll grant `MODIFY` permission to group`Everyone`. – Sunny May 08 '14 at 16:02