Solved

Dump ACLs to a text file

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Report events not being triggered 8 100
Reading variable length EBCDIC in SAS 9 75
countAbc challenge 9 49
mapBully challenge 6 88
This article will show, step by step, how to integrate R code into a R Sweave document
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

708 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

15 Experts available now in Live!

Get 1:1 Help Now