Dump ACLs to a text file
Posted on 2006-07-18
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.