Querying the Status of Optional Features

In Windows 7, WMI implemented the Win32_OptionalFeature class. This class retrieves the status of the optional features that are present on a computer.

You can use Windows PowerShell cmdlets to query the status of optional features. All of the examples in this topic use the Get-WmiObject cmdlet. For more information, see Get-WmiObject.

Ee309380.wedge(en-us,VS.85).gifTo retrieve all instances of optional features present on a computer

Ee309380.wedge(en-us,VS.85).gifTo query for an optional feature by specifying the feature name

    Get-WmiObject -query "select * from Win32_OptionalFeature where name = 'TelnetClient'"
    Note  The name property is case-sensitive.

Ee309380.wedge(en-us,VS.85).gifTo query for optional features by specifying the install state

Related topics