programatically view security permission of a directory tree

Posted on 2003-03-06
Medium Priority
Last Modified: 2013-12-04
Does anyone know of any tools or scripts to view or print out a directory tree, including security permissions for each folder (and optionally files).

The problem we are trying to solve is managing various fileservers.  We want to start at the "top" and be able to recursively find all the sub folders and see the permissions on each folder.

Over time (and with various admins) the fileservers have had permissions set at various points in the tree that break the inheritance and/or are just unknown to us.

Any suggestions would be appreciated.

Question by:jrowe88
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Expert Comment

ID: 8083526
You can do it Yourself, as a compiled exe-file, if You purchase www.Winbatch.com

:o) And thousands of other things

Many Regards
Jorgen Malmgren

Expert Comment

ID: 8087209
you don't need to purchase anything, windows NT and 2000 comes with a great command line tool call "cacls".

Play with it.
LVL 85

Accepted Solution

oBdA earned 200 total points
ID: 8090187
You can start with that

@echo off

for /f "tokens=*" %%a in ('dir /a:d /b /s %1') do cacls "%%a"

and move on from there.
This accepts a directory as start point and lists the NTFS rights of it and all subfolders.

Author Comment

ID: 8096040
Thanks! Exactly what I was looking for.

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question