Link to home
Start Free TrialLog in
Avatar of creative555
creative555

asked on

Can I exclude specific directory with icacle command?

I had this question after viewing ICACL switch help. How to include current folder.

So, this command below is working great for me. I would like to exclude this directory from processing
C:\Users\ed.banti\AppData\Local\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\


icacls C:\Users\tim.litton\*.* /grant "TESTTARGET\tim.litton:(OI)(CI)F"


If not possible, what would be the powershell command to do the same - to process all files and folders in  C:\Users\tim.litton\*.* and exclude C:\Users\ed.banti\AppData\Local\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\

Thank you so much!
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America 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
As Arnold said, icacls C:\Users\tim.litton\*.* /t never touches C:\Users\ed.banti. Your question does not make sense.
Avatar of creative555
creative555

ASKER

thank you so much! I checked the link and it doesn't have exclude switch.....

ed.banti was just  a typo. it was suppose to be the same user.