wntMemberList

Returns a list of the members of a user group.

Syntax:

wntMemberList(server-name, group-name, group-type[, output-format-flag[, input-format-flag]])

Parameters:

(s) server-name: name of a network file server ("\\MYSERVER")or ("") for a local PC.

(s) group-name: name of the group.

(i) group-type: @LOCALGROUP or @GLOBALGROUP

(i) output-format-flag: [optional] controls the format of the user names that are returned.

Value

Meaning

0

(default) list user names only

1

user names will have domain names prefixed on to them, except in cases where the domain name is "BUILTIN" or "NT AUTHORITY".

2

user names will have domain names prefixed on to them in all cases.

4

SID values will be returned in place of user names.

8

SID values will be returned in place of user names, but the SID strings will only be for SID values that could not be resolved to user account names [e.g. orphaned SIDs].


(i) input-format-flag: [optional] controls how the group-name parameter value is interpreted.

Value

Meaning

0

(default) actual name of the group.

1

group-name contains a SID value instead of an actual user account name.

Returns:

(i) a tab delimited list of users.

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

people=wntMemberList("","Users",@LOCALGROUP,1,0) AskItemlist("Member of group Users",people,@TAB,@SORTED,@SINGLE) Exit
See Also:

wntMemberSet, wntMemberDel