Link to home
Start Free TrialLog in
Avatar of Itxx
Itxx

asked on

icacls on files that are maximum 2 days old

Hello,

I'm looking for a script that replaces all child object permission entries on files that are maximum 2 days old.

The script to reset permissions is:

icacls "C:\FOLDER\Folder2" /reset /T /C

Open in new window


How can I modify this for files that are 2 days old.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Itxx
Itxx

ASKER

Thanks! It works like a charm!