Win32_OptionalFeature WMI class Represents the status of the optional features that are present on the operating system.
In ConfigMgr, this class is represented by Server side WMI class SMS_G_System_OPTIONAL_FEATURE. This WMI class contains the data related with Operating System Optional features. This server class can be used to create SCCM query and collections based on OS optional features.
Related post: If you are looking for step by step process to create a dynamic / query based collection then follow this article : How to Create Dynamic Collection in SCCM
Other posts in this series:
- SCCM Collection Queries for Opearting System Attribute Class
- SCCM Collection Queries for System Resource (SMS_R_System) Attribute Class
- SCCM Device Collection Based on Computer Hardware Details
- SCCM Collection Based on operating System optional features
- SMS_G_System_OPTIONAL_FEATURE – Install State
- SCCM Collection for Computers Where Microsoft .Net Framework 3.5 is Not Enabled
- SCCM Collection for Computers Where Microsoft .Net Framework 3.5 is Enabled
- SCCM Collection for Computers Where SMB 1.0 / CIFS File Sharing Support Feature is Enabled
- SCCM Collection for Computers Where Telnet Client is Enabled
- Related Posts:
SMS_G_System_OPTIONAL_FEATURE – Install State
When you get the details about install states of operating system optional features, the details are pulled from the SMS_G_System_OPTIONAL_FEATURE wmi server class. On a client machine these information stored in win32_OptionalFeature WMI class.
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)
SCCM Collection for Computers Where Microsoft .Net Framework 3.5 is Not Enabled
Attributes to select from Query Designer
Attribute Class : Optional Features
Attribute Name : Caption / Install State
SCCM Collection Query / WQL Query
select distinct SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPTIONAL_FEATURE on SMS_G_System_OPTIONAL_FEATURE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPTIONAL_FEATURE.Caption = ".NET Framework 3.5 (includes .NET 2.0 and 3.0)" and SMS_G_System_OPTIONAL_FEATURE.InstallState = "2" order by SMS_R_System.Name
SCCM Collection for Computers Where Microsoft .Net Framework 3.5 is Enabled
Attributes to select from Query Designer
Attribute Class : Optional Features
Attribute Name : Caption / Install State
SCCM Collection Query / WQL Query
select distinct SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPTIONAL_FEATURE on SMS_G_System_OPTIONAL_FEATURE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPTIONAL_FEATURE.Caption = ".NET Framework 3.5 (includes .NET 2.0 and 3.0)" and SMS_G_System_OPTIONAL_FEATURE.InstallState = "1" order by SMS_R_System.Name
SCCM Collection for Computers Where SMB 1.0 / CIFS File Sharing Support Feature is Enabled
Attributes to select from Query Designer
Attribute Class : Optional Features
Attribute Name : Caption / Install State
SCCM Collection Query / WQL Query
select distinct SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPTIONAL_FEATURE on SMS_G_System_OPTIONAL_FEATURE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPTIONAL_FEATURE.Caption = "SMB 1.0/CIFS File Sharing Support" and SMS_G_System_OPTIONAL_FEATURE.InstallState = "2" order by SMS_R_System.Name
SCCM Collection for Computers Where Telnet Client is Enabled
Attributes to select from Query Designer
Attribute Class : Optional Features
Attribute Name : Caption / Install State
SCCM Collection Query / WQL Query
select SMS_R_System.NetbiosName, SMS_G_System_OPTIONAL_FEATURE.Caption, SMS_G_System_OPTIONAL_FEATURE.InstallState, SMS_G_System_OPTIONAL_FEATURE.Status from SMS_R_System inner join SMS_G_System_OPTIONAL_FEATURE on SMS_G_System_OPTIONAL_FEATURE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPTIONAL_FEATURE.Caption = "Telnet Client" and SMS_G_System_OPTIONAL_FEATURE.InstallState = "1"
Related Posts:
- How to Create Dynamic Collection in SCCM
- Enclosure Chassis Types Value & Description | ConfigMgr | SCCM
- ConfigMgr: Maintenance Window for member of specific collection – SQL Query
- SCCM Dynamic Collection for Windows 10 / 11 Devices
- SCCM Device Collection Equivalents in Microsoft Intune for App Deployment
- SCCM Dynamic Collection Based on Device Type | Collection Queries
- SCCM Collection Based on Operating System Optional Features
- SCCM Device Collection Based on Installed Software Products & Inventoried Files
- SCCM Device Collection Based on Computer Hardware Details
- SCCM Collection Queries for Opearting System Attribute Class
- SCCM Collection Queries for System Resource (SMS_R_System) Attribute Class
- SCCM Dynamic Collection using Application Deployment Status
- SCCM Dynamic Collection Based on Configuration Baseline Compliance Status
- How to Create , View and Organize SCCM Maintenance Windows
- How to Provision Windows 10 / 11 Device using Intune and Windows Autopilot
Subscribe to Techuisitive Newsletter
Be the first to know about our new blog posts. Get our newsletters directly in your inbox and stay up to date about Modern Desktop Management technologies & news.