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

wNT
plus

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

wntAccessList Problem


Question:

I am using the wntAccessList function to get list of all users/groups who were granted access to a folder on a network file server (remotely run from my workstation/servers).

Groups = wntAccessList("","\\%ServerName%\d$\dirname" , 300, 0)
The problem is that I can not retrieve all users/groups if I run a script on a windows OS different than the remote servers. ex: the script is run 2000 (or XP), and file server is 2003 and vs.

However, If the script is run on a Windows OS the same as the remote server OS (ex: 2000 and 2000), then I can retrieve all the Users/Groups information.

If I just add the servername in the first double-quote and it works. Why?

Groups = wntAccessList("%ServerName%","\\%ServerName%\d$\dirname" , 300, 0)

Answer:

If you don't specify the server name to match the server in the UNC spec, then the extender gets confused as it detects different versions of the O.S. and it refuses to do anything security-related that might even remotely have a chance of damaging the security settings. This stems from the deficiencies in the security API functions as they pertain to crossing between WinNT v4.0 and Win2K & newer. Rather than allow you to silently corrupt your security settings in various & sundry ways, the extender takes some steps to make sure you don't shoot yourself in the foot.
Article ID:   W17070
File Created: 2007:07:03:14:28:04
Last Updated: 2007:07:03:14:28:04