wntGroupAdd

Creates a user group.

Syntax:

wntGroupAdd(server-name, group-name, group-type, comment)

Parameters:

(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) group-name: the name of the group to be created.

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

(s) comment: an optional description of the group, or "" for none.

Returns:

(s) always 1.

 

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

wntGroupAdd("\\Server\L4", "Everybody", @GLOBALGROUP, "") Message("Everybody","Group added") Exit
See Also:

wntListGroups, wntGroupInfo