Scripting with icacls
Posted on 2012-08-23
Hopefully an easy question. I need to create a script that creates a folder in the root of C:\ (lets call it C:\test for right now), but I am having an issue assigning full control to the "Everyone" group. I am not very experienced with icacls, and was hoping for some advice on how to get this to work. The system is Windows 7 x64, and I am running this as administrator.
The command I have been trying to use is:
icacls C:\test /grant Everyone : F
At this point it returns an error saying "Invalid Parameter "Everyone". Any idea on what I am doing wrong?