Win32_LogicalProgramGroup class
The Win32_LogicalProgramGroup WMI class represents a program group in a computer system running Windows. For example, Accessories or Startup.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_LogicalProgramGroup : Win32_ProgramGroupOrItem
{
string Caption;
string Description;
string GroupName;
datetime InstallDate;
string Name;
string Status;
string UserName;
};
Members
The Win32_LogicalProgramGroup class has these types of members:
Properties
The Win32_LogicalProgramGroup class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short description of the object.
- Description
-
- Data type: string
- Access type: Read-only
Description of the object.
- GroupName
-
- Data type: string
- Access type: Read-only
Name of the Windows program group. Program groups are implemented as file folders in Win32.
Example: "Accessories\System Tools"
- InstallDate
-
- Data type: datetime
- Access type: Read-only
Date the object is installed. This property does not need a value to indicate that the object is installed.
- Name
-
User-assigned name followed by the group name. Program groups are implemented as file folders in Win32.
Example: "All Users:Accessories\System Tools"
- Status
-
- Data type: string
- Access type: Read-only
Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "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 online, yet the managed element is neither "OK" nor in one of the other states.
The values are:
- "OK"
- "Error"
- "Degraded"
- "Unknown"
- "Pred Fail"
- "Starting"
- "Stopping"
- "Service"
- UserName
-
- Data type: string
- Access type: Read-only
Users who can access the Windows program group. Program groups are implemented as file folders in Win32.
Example: "All Users"
Remarks
The Win32_LogicalProgramGroup class is derived from Win32_ProgramGroupOrItem.
The calling process that uses this class must have the SE_RESTORE_NAME privilege on the computer in which the registry resides. For example, if you enumerate this class on the local computer, the account under which your application runs must have this privilege. For more information, see Executing Privileged Operations.
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 client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012