Win32_ProgramGroup class
The Win32_ProgramGroup WMI class represents a program group in a computer system running Windows. This class is not available or supported. Instead, use Win32_LogicalProgramGroup.
Windows Server 2003 and Windows XP: Win32_ProgramGroup is obsolete. Instead, use Win32_LogicalProgramGroup.
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_ProgramGroup : CIM_Setting
{
string Caption;
string Description;
string GroupName;
string Name;
string SettingID;
string UserName;
};
Members
The Win32_ProgramGroup class has these types of members:
Properties
The Win32_ProgramGroup class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short description of the CIM_Setting object.
- Description
-
- Data type: string
- Access type: Read-only
Description of the CIM_Setting object.
- GroupName
-
- Data type: string
- Access type: Read-only
- Qualifiers: Deprecated
Path name of the program group through the Windows Start menu. WMI obtains this data from the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Example: "Accessories\System Tools"
- Name
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key, Deprecated, MaxLen (256)
User name followed by the Windows program group name.
Example: "All Users:Accessories\System Tools"
- SettingID
-
- Data type: string
- Access type: Read-only
Identifier by which the CIM_Setting object is known.
- UserName
-
- Data type: string
- Access type: Read-only
- Qualifiers: Deprecated
Users who can access the Windows program group.
Example: "All Users"
Remarks
The Win32_ProgramGroup class is derived from CIM_Setting.
The calling process that uses this class must have the SE_RESTORE_NAME privilege on the computer in which the registry resides. For more information, see Executing Privileged Operations.
You can change the registry values where Win32_ProgramGroup obtains data by calling the WMI System Registry Provider methods in script or in C++. For more information, see Modifying the System Registry and WMI Registry Classes.
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