This is quick blog post on how to create device collection for computers that are online and showing the green checkmark.
When a configuration manager client is installed,it will have the following status code indicating the device. For more information about device client status, please refer here
How do we create a collection for clients that are online?
Collections uses WQL and following is the WQL syntax you can use to create the collection.
we will use wmi class called SMS_CollectionMemberClientBaselineStatus which has the client online status information. This information comes from the client notification that uses BGB/fast channel.
This collection uses sub-selected query.
SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId in
(select resourceid from SMS_CollectionMemberClientBaselineStatus where SMS_CollectionMemberClientBaselineStatus.CNIsOnline = 1)
If your configuration manager is running on 2010, you will have option to preview the results. Click on the play button to see the results before you confirm the changes.
Save the collection and wait for few seconds before the data appear.
Based on the device collection membership, the results get updated.
If you want to create a reports based on the online status, you can refer http://eskonr.com/2016/04/how-to-query-clients-collection-or-ssrs-ssrs-with-online-status-in-sccm-configmgr-1602/