Expand Minimize
This topic has not yet been rated - Rate this topic

Win32_OptionalFeature class

Represents the status of the optional features that are present on the operating system.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Syntax

class Win32_OptionalFeature : CIM_LogicalElement
{
  string   Name;
  string   Caption;
  uint32   InstallState;
  string   Description;
  datetime InstallDate;
  string   Status;
};

Members

The Win32_OptionalFeature class has these types of members:

Properties

The Win32_OptionalFeature class has these properties.

Caption
Data type: string
Access type: Read-only

Specifies an optional feature display name if present.

Description
Data type: string
Access type: Read-only

This property is NULL. The Description property is inherited from CIM_ManagedSystemElement.

InstallDate
Data type: datetime
Access type: Read-only

This property is NULL. The InstallDate property is inherited from CIM_ManagedSystemElement.

InstallState
Data type: uint32
Access type: Read-only

Identifies the state of the optional feature. The following states are possible:

Enabled (1)
Disabled (2)
Absent (3)
Unknown (4)
Name
Data type: string
Access type: Read-only
Qualifiers: key

Specifies the name of the optional feature.

Status
Data type: string
Access type: Read-only

This property is NULL. The Status property is inherited from CIM_ManagedSystemElement.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Namespace

\root\CIMV2

MOF

Cimwin32.mof

DLL

Cimwin32.dll

See also

CIM_LogicalElement
CIM_ManagedSystemElement
Querying the Status of Optional Features

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.