In this post, I will show you how to create a Device Collection and query rule for Windows 10 machines in ConfigMgr. There are many ways to achieve the same thing some methods are quicker and easier to administer than others. I do love the easy way.
The ConfigMgr client reports back the details of the workstation or server environment to the ConfigMgr Management Point. This includes information about the Operating System the device is running. You can then use this information to populate device collections through WQL queries of information in the ConfigMgr database.
Right Click Device Collections and click Create Device Collection.
Enter a logical name for the Collection.
Click Add Rule and select Query Rule.
Click Edit Query Statement.
Click Show Query Language and copy and paste the WQL below:
select 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 where SMS_R_System.OperatingSystemNameandVersion like “%Microsoft Windows NT Workstation 10%”
Click OK Twice and Next twice and then Close.
Your collection has now been created.
HOWEVER
In light of Microsoft releasing build regularly you may want to create a collection based on build. In order to do this we can instead create a query based on the build number. To do this create a Device Collection but instead of importing the WQL language above create a Query Rule with the name of the build number as per below and edit the Query Statement.
Click on the Criteria Tab and click the New Criteria Icon
Select the following:
Criterion Type: Simple value
Where: Click Select Attribute Class: Operating System
Alias as:
Attribute: Build Number
Where: Click Select Attribute Class: Operating System
Alias as:
Attribute: Build Number
Click OK and enter the build number as per your environment:
Click OK three times.
To add additional builds click Add Rule > Query Rule and complete the steps above again for each build number.
Each time a build gets released just simply add another Query Rule to the Device Collection. Your console should now show your new collection/s.
No comments:
Post a Comment