Link to home
Create AccountLog in
Avatar of sonic1234
sonic1234Flag for Australia

asked on

Using icacls to parse folder permissions only

Hello Experts,

We have been using icacls to set permissions on a number of directories as we migrate sites between servers.

eg;

icacls archive /grant IUSR:(OI)(CI)M
icacls cp_audit /grant IUSR:(OI)(CI)M
icacls repository /grant IUSR:(OI)(CI)M

As we only need to set directory permissions we want to exclude files from the permission reports we can generate using;

icacls c:\inetpub\wwwroot\* /T > c:\temp\file.txt

We  also want save the current folder permissions only to file

icacls c:\inetpub\wwwroot\* /save AclFile.txt /T

How can we use icacls to just report folders and not files?
Avatar of Chris H
Chris H
Flag of United States of America image

Have you tried *.
ASKER CERTIFIED SOLUTION
Avatar of Chris H
Chris H
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer