Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
To retrieve all instances of optional features present on a computer
PowerShell |
---|
|
To query for an optional feature by specifying the feature name
PowerShell |
---|
|
Note
The name property is case-sensitive.
To query for optional features by specifying the install state
PowerShell |
---|
|
For more information about the possible values for the InstallState property, see Win32_OptionalFeature.
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today