wntGroupRen

Renames a group.

Syntax:

wntGroupRen(server-name, group, group-type, new-name [, input-format-flag])

Parameters:

(s) server: the UNC name of the server on which the function will execute (eg, "\\MYSERVER"), or "" for the local computer.

(s) group: group name.

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

(s) new-name: specifies the new name for the group.

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

Value

Meaning

0

(default) actual group account name.

1

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

Returns:

(i) always 1.

 

Note: This function can only be performed by members of the Administrators or Account Operators local group.

 

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

wntGroupRen("", "Office", @LOCALGROUP, "Office01", 0) Message("Group rename", "Successful") Exit
See Also:

wntListGroups