troubleshooting Question

Using icacls to parse folder permissions only

Avatar of sonic1234
sonic1234Flag for Australia asked on
Windows Server 2008
2 Comments1 Solution2400 ViewsLast Modified:
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?
Chris H
Infrastructure Director

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros