I need to change permissions on a file/folder through the command line. I can do this manually by:
- Right-click on any file/folder
- Security (tab)
- Enter the object names to select: Users
How do I do this using a command line.
icacls "C:\folder1\folder2\file.txt" /grant:r Users:F
The problem is I want to select the parent folder and for it to effect all files.
icacls "C:\folder" /grant:r Users:(OI)(CI)F
Is it because icacls can't refer to a folder??