That's what /t does – "all specified files in [not on] the current directory and its subdirectories." Looking at the syntax (http://technet.microsoft.com/en-us/libr ... 0%29.aspx; I don't use Icacls much myself), I don't see where it'd run differently.
by nohandle at 2013-01-22 00:48:31
I usually use this in cmd: icacls "c:\program files\folder" /grant users:(OI)(CI)M – the OI stands for Object Inheritance and the CI for Container Inheritance. If I am correct setting inherited permissions on the top folder is better than setting the permissions on every file separately.
In PowerShell it does not run by default part of the command needs to be escaped. For more information about running the command with ease refer to my article here: http://www.powershellmagazine.com/2013/ ... owershell/
by lasty12 at 2013-01-23 11:26:09
Thanks for your responses, nohandle, I found the solution very similar to your suggestion as below – including " " around the user and parameters: