SCCM Collections using Queries

System Center Configuration Manager (SCCM) collections allow you to group resources in your environment, such as computers or users, based on a set of criteria. One of the ways to create these collections is by using queries. Queries are written using WQL (WMI Query Language) and specify the criteria for the resources you want to include in the collection.

here is the complete lab