Export (0) Print
Expand All
Expand Minimize

Win32_GroupUser class

The Win32_GroupUser association WMI class relates a group and an account that is a member of that group.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Provider("CIMWin32")]class Win32_GroupUser : CIM_Component
{
  Win32_Group   REF GroupComponent;
  Win32_Account REF PartComponent;
};

Members

The Win32_GroupUser class has these types of members:

Properties

The Win32_GroupUser class has these properties.

GroupComponent
Data type: Win32_Group
Access type: Read-only
Qualifiers: Key

Reference to the instance representing the group of which the account is a member.

PartComponent
Data type: Win32_Account
Access type: Read-only
Qualifiers: Key

Reference to the instance representing the user or system account that is a part of a group of accounts.

Remarks

The Win32_GroupUser class is derived from CIM_Component.

Examples

For a PowerShell example of using Win32_GroupUser to retrieve a list of local group members, see the List local group members on a remote computer using WMI and PowerShell sample on TechNet Gallery.

The WMI Information Retriever VBScript code example on the TechNet Gallery uses the Win32_GroupUser class to retrieve user information from a number of remote computers.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes

 

 

Show:
© 2014 Microsoft