Solved

Dump ACLs to a text file

Posted on 2006-07-18
5
1,026 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SUM 2 INTEGER ARRAYS INTO 1 10 108
simplest php form 3 81
"Black Box" Testing of Control System Software 2 70
Create .bat File 16 34
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

828 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