I have a folder in my inetpub which holds thousands of images automatically copied from a dropbox account every 30 minutes.
In order for my IIS users to access those files, I need to give full control permissions to those files. I have a scheduled task running the following command every ten minutes to ensure proper permissions at all times.
The problem is that it seems to slow down my server when it runs. It's taking longer and longer to run too.
Is there a way to tell icacls to only change the files which don't have full control permissions?
icacls c:\inetpub\wwwroot\production\DigitalImages\*.* /grant builtin\iis_iusrs:f