WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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: wntAccessList
AddExtender("WWWNT34I.DLL")
users = wntAccessList("", "Public", 100, 0)
AskItemlist("List of users who have access records for a resource",users,@tab,@unsorted,@single)

Article ID:   W13545
Filename:   Look up Access Permissions to an NT Resource.txt
File Created: 2001:03:01:13:51:00
Last Updated: 2001:03:01:13:51:00