wntMemberDel

Deletes the specified user from the specified group on the specified server.

Syntax:

wntMemberDel(server-name, group-name, user-name, group-type [, 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.

(s) user-name: name of the current user.

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

(i) input-format-flag: [optional] controls how the group-name and user-name parameter values are interpreted.

Value

Meaning

0

User and group name are actual group/user accounts names.

1

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

2

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

Returns:

(i) @TRUE if successful; @FALSE if the user is not a member of the group.

 

Assuming that the person running this script has sufficient authority to delete users from the specified group, this function will delete the specified user from the group.

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

rslt=wntMemberDel("","testgroup","jdoe",@LOCALGROUP,0) If rslt    Message("jdoe","removed from testgroup") Else    Message("jdoe","is not a member of testgroup") EndIf Exit
See Also:

wntMemberGet, wntMemberSet, Extender Limitations