- WMI Library -
WMI Libraly > Win32_Group Class

Win32_Group Class

The Win32_Group class represents data about a group account. A group account allows access privileges to be changed for a list of users.
Example: Marketing2.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • Description
  • The Description property provides a textual description of the object.

  • Domain
  • The Domain property indicates the name of the Windows domain to which the group account belongs.
    Example: NA-SALES

  • InstallDate
  • The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.

  • LocalAccount
  • The LocalAccount property indicates whether the account is defined on the local machine. To retrieve only accounts defined on the local machine state a query that includes the condition 'LocalAccount=TRUE'.

  • Name
  • The Name property indicates the name of the Win32 group account on the domain specified by the Domain member of this class.

  • SID
  • The SID property contains the security identifier (SID) for this account. a SID is a string value of variable length used to identify a trustee. Each account has a unique SID issued by an authority (such as a Windows domain), stored in a security database. When a user logs on, the system retrieves the user's SID from the database and places it in the user's access token. The system uses the SID in the user's access token to identify the user in all subsequent interactions with Windows security. When a SID has been used as the unique identifier for a user or group, it cannot be used again to identify another user or group.

  • SIDType
  • The SIDType property contains enumerated values that specify the type of security identifier (SID). SIDTypes include:
    SidTypeUser - Indicates a user SID.
    SidTypeGroup - Indicates a group SID.
    SidTypeDomain - Indicates a domain SID.
    SidTypeAlias - Indicates an alias SID.
    SidTypeWellKnownGroup - Indicates a SID for a well-known group.
    SidTypeDeletedAccount - Indicates a SID for a deleted account.
    SidTypeInvalid - Indicates an invalid SID.
    SidTypeUnknown - Indicates an unknown SID type.
    SidTypeComputer - Indicates a SID for a computer.

  • Status
  • The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.


  • Rename
  • The Rename() allows for the renaming of the group name; a key in this class. The functionality to change the key property "Name" is implemented as a method to provide a separate context for the new name distinguishable from the key name associated with the instance to be modified in this class.

    Example WQL

    SELECT * FROM Win32_Group
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...