?
Solved

Dump ACLs to a text file

Posted on 2006-07-18
5
Medium Priority
?
1,042 Views
Last Modified: 2012-05-05
I want to use WMI to list all the DACLs for a particular path and all of it's subfolders.  I don't want to have to enumerate the whole drive and then filter for what I want (that takes too long). How do I do a recursive/iterative listing of all the folder and subfolders on a Windows 2000/XP/2003 machine starting from a certain location. I also need this to work across a network connection and not just on the local computer (i.e. get the DACLs set on \\server\share\foldername or "server,c:\winnt" -- whichever way works).

DumpACL is not an option. I need it to work via a script.
0
Comment
Question by:victornegri
[X]
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
  • 2
5 Comments
 
LVL 41

Accepted Solution

by:
graye earned 2000 total points
ID: 17205637
Doing this with WMI would be a pig....

You can still write a script that uses external tools, so what's the problem?

I've got an entire application called List_ACLs that's written in VB.Net that does what you're asking for.  It records it's results to a Microsoft Access database.   You're welcome to look at the source code for inspiration/plagiarism

http://home.hot.rr.com/graye/AdminTools.htm
0
 

Expert Comment

by:kstech
ID: 36436244
0
 
LVL 41

Expert Comment

by:graye
ID: 36436363
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

771 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