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
[Dynamic, Provider("CIMWin32"), UUID("{8502C508-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
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, Override ("GroupComponent"), MappingStrings ("WMI|Win32_Group")
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, Override ("PartComponent"), MappingStrings ("WMI|Win32_Account")
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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|