How to Look up Access Permission to a Particular Resource
Keywords: WntAccessAdd ACLs Access Control Lists
Question:
How do you use WntAccessAdd to *look up* user/group names and share names (if 'resource/share-name' specifies a share)?I want to know if WinBatch has a function to look up which users have access permission to a particular directory (access control lists).
Does WinBatch have a function that can look that information up? Something like what ACLs, out of the NT resource kit, uses. I don't want all users and groups on a server, I just want to know who has access permission to this particular resource.
Answer:
See the Win32 Network function: wntAccessListAddExtender("WWWNT34I.DLL") users = wntAccessList("", "Public", 100, 0) AskItemlist("List of users who have access records for a resource",users,@tab,@unsorted,@single)
Article ID: W13545Filename: Look up Access Permissions to an NT Resource.txt