Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
WMI Classes
Win32 Classes
 Win32_GroupUser Class
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

class Win32_GroupUser : CIM_Component
{
  Win32_Group   REF GroupComponent;
  Win32_Account REF PartComponent;
};

Methods

The Win32_GroupUser class does not define any methods.

Properties

The Win32_GroupUser class defines the following 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 script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
MOFCimwin32.mof
DLLCimwin32.dll
Namespace\root\cimv2

See Also

Operating System Classes

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker