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\Pack ages\Micro soft.Windo ws.Cortana _cw5n1h2tx yewy\
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\Pack ages\Micro soft.Windo ws.Cortana _cw5n1h2tx yewy\
Thank you so much!
So, this command below is working great for me. I would like to exclude this directory from processing
C:\Users\ed.banti\AppData\
icacls C:\Users\tim.litton\*.* /grant "TESTTARGET\tim.litton:(OI
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\
Thank you so much!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As Arnold said, icacls C:\Users\tim.litton\*.* /t never touches C:\Users\ed.banti. Your question does not make sense.
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.
ed.banti was just a typo. it was suppose to be the same user.