Solved

Dump ACLs to a text file

Posted on 2006-07-18
5
1,022 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
  • 2
5 Comments
 
LVL 41

Accepted Solution

by:
graye earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How Complex Is This Java Course ? 9 94
Hide vba in gp 7 83
Arduino EDI - Programming Language - Voice Recorder 4 70
MacOS and programming in React 7 28
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now