Using Icacls to Show Which Files Users or Groups Can Access

Here's how you can use Icacls with the /T and /C switches to see which files users or groups can access.

ITPro Today

October 24, 2007

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Q: How can I get a report of all the files on a server that a given user or group has access to?

A: You can get such a report by using the Icacls tool in Windows Vista and Windows Server 2003 SP2. Icacls is the new enhanced version of Cacls, which is now deprecated. Run the command

Icacls c:*.* /findsid acmesalesreps /T /C

which tells Icacls to search the ACL of each file starting at the root of the C drive and report any access control entries (ACEs) in which acmesalesreps is the subject. The /T switch tells Icacls to recurse from the root down so that the entire volume is analyzed. The /C switch tells Icacls to keep searching if it encounters any errors on files that you don't have Read access to. For more information about Icacls, see Toolbox, "Icacls," May 2007, http://www.securityprovip.com/articles/index.cfm?articleid=95657.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like