Using icacls to parse folder permissions only

sonic1234 used Ask the Experts™
Hello Experts,

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


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?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chris HInfrastructure Manager

Have you tried *.
Infrastructure Manager
icacls c:\inetpub\wwwroot\*. /save aclfile.txt /T

that should work

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial