Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Solution for NTFS Permissions

Status
Not open for further replies.

djtech2k

MIS
Jul 24, 2003
1,097
US
I have to create a report of all files/directories within a certain directory structure on a server that Domain Admins DO NOT have access to.

I know some admins have removed Domain Admins locally from certain files/folders. I now need to report which files/folders a logged in domain admin cannot get to.

I have some vbscript and have thought about tools like subinacl or cacls, but I see nothing that will get me what I need. I have a vbscrip0t I can use to report everything and maybe I can tell it to only report ones that do not have Domain admin in the ACL, but I dont think that will account for Domain Admins being nested within another group. I think the ACL you get with vbscript is not the effective one.

Any ideas?
 
cacls *.* /T /C>c:\folder-fileperms.xls is a simple batch and can easily be sorted in Excel
 
Thanks. The cacls doesnt really tell me what I need and xcacls is kind of an issue because I need recursive searching, but because the OS is Windows 2000, I cannot use "LIKE" or wildcards in the WMI search.
 
XCACLS will report on subs, you just need to use the /S and /T switches.

/S = Subdirectories
/T = Traverse


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top