Returns a list of priviliges granted to a user or group.
wntPrivList( server-name, user/group name [,input-format-flag])
(s) server-name: the UNC name of the server on which the function will execute (eg, "\\MYSERVER"), or a blank string ("") to indicate the current machine.
(s) user/group: name the name of a user or group. If necessary, it can be fully qualified as "server\user" (or "server\group").
(i) input-format-flag: [optional] controls how the user/group-name parameter value is interpreted.
Value Meaning
0 User and group name are actual group/user accounts names
1 user/group-name contains a SID value instead of an actual user/group account name.
(s) list: a tab-delimited list of privileges.
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
list=wntPrivList("\\server","server\user",0) AskItemlist("List of privileges for user", list,@TAB,@SORTED,@SINGLE) Exit