Rename method of the Win32_Group class

The Rename WMI class method allows the group name to be changed.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

uint32 Rename(
  [in] string Name
);

Parameters

Name [in]

Name of the Windows user account on the domain specified by the Domain property of this class.

Return value

The Rename method can return the error codes listed in the following list. For integer values other than those listed, refer to WMI_Return Codes.

Success

0

Success.

Instance not found

1

Instance required

2

Invalid parameter

3

Group not found

4

Domain not found

5

Operation is allowed only on the primary domain controller of the domain

6

Operation is not allowed on specified special groups; user, admin, local or guest.

7

Other API error

8

Internal error

9

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
CIMWin32.mof
DLL
CIMWin32.dll

See also

Operating System Classes

Win32_Group

Win32_LogicalFileSecuritySetting