Adding users to a directory recursively windows 7

Posted on

Problem :

I’m trying to set up my site on IIS, and it would seem I need to add the user group “USERS” to all files/folders within my site. This would require recursively adding a user to the root directory of my site. After some searching this is the closest command I can find: CACLS /T … but this looks to be for setting permissions only. Does anyone know how to work it to add users? Or a more appropriate command?

Solution :

for windows 7 you should be using icacls, Both cacls and icacls works with either users or groups

icacls "C:MyISSPath" /grant "USERS":R /T

Leave a Reply

Your email address will not be published.