SCCM Collection Based on Operating System Optional Features | ConfigMgr

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.

SCCM Collection Operating System 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:

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:

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.

Scroll to Top