SCCM Device Collection for Windows 10 Computers

In this short post we will see the steps to create SCCM device collection for windows 10 computers. A query is a specific set of instructions that extract information about a defined set of objects. You can create queries and store them in the Configuration Manager 2012 R2 site database. By running a query, you search the database for information about the objects that match the query criteria. Configuration Manager comes with just a handful of queries out-of-the-box that illustrates a small part of the rich amount of data available. Microsoft has picked 10240 as the final build number of Windows 10. Surprisingly when Windows 10 RTM was launched the build number was 10240 and it wasn’t changed even after the Windows 10 final version was released. In my previous post, I have shown the steps to install System Center Configuration Manager Technical Preview 4. If you look at the TP updates, a lot of capabilities are added in very release and most of the focus is on managing Windows 10 computers.

Create SCCM Device Collection for Windows 10 Computers

To create windows 10 computers device collection, launch the Configuration Manage console, click Assets and Compliance, right click Device Collection and click Create Device Collection.

SCCM Device Collection for Windows 10 Computers

Specify Name of the collection, to set the limiting collection, click on Browse and choose the limiting collection. Click Next.

SCCM Device Collection for Windows 10 Computers

Membership Rules – Click on Add Rule > Query Rule.

SCCM Device Collection for Windows 10 Computers

In the Query Rule Properties window, provide a name to the query, click on Edit Query Statement.

SCCM Device Collection for Windows 10 Computers

Next, in the Query Statement Properties window, click on star icon to specify a criteria.

SCCM Device Collection for Windows 10 Computers

Set the Criterion type as Simple value. Choose the attribute class = Operating System, attribute = build number. Choose the operator as equal to and set the value to 10240 which is the build number of Windows 10 OS. Click OK.

SCCM Device Collection for Windows 10 Computers

If you need the query, here it is.



Click on Next.

SCCM Device Collection for Windows 10 Computers

The device collection has been created. Wait for few minutes and you will see all the Windows 10 computers grouped into the collection.

SCCM Device Collection for Windows 10 Computers

You might also like

Leave a Reply

9 Comment threads
5 Thread replies
Most reacted comment
Hottest comment thread
newest oldest most voted

This will list all of the windows 10 devices. Doest matter which verson.

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 “%Workstation 10.0%”


helpful, but this query also returns server 2019 machines. need to add a producttype check. 1 = workstations, 2 = domain controllers, 3 = member servers

Matthew Martyn

I find that the query you showed us on here leaves too many Windows 10 PCs not joining a device collection. For example, I created a query for 1809 using yours and only about 2/3 of my PCs will join the DC. Why, I have NO idea. My guess is that SCCM is not getting the information that the query is wanting. Instead I use the following query and have had 100% success using it. It can be adjusted to detect other builds of Windows 10 by altering the Build Number to match what you want SCCM to find. select… Read more »

Tylor Faoro

You can add OR queries for each build number in your tree which will allow you to search for all respective Builds. My Query is:

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 inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where
SMS_G_System_OPERATING_SYSTEM.BuildNumber = “17763” or SMS_G_System_OPERATING_SYSTEM.BuildNumber = “15063” or SMS_G_System_OPERATING_SYSTEM.BuildNumber = “16299” or SMS_G_System_OPERATING_SYSTEM.BuildNumber = “17134”


I have many versions of windows Retail, Business and Consumer how do I build the query for them.


how do i give my colleagues permission to the sccm environment as helpdesk users, also to the network administrator of the company: helpdesk user: function helpdesk = { “remote to client computers”, “OSD”, “deploy applications”, “audit workstations”} network administrator: function netadmin = { “remote to client computers”, “OSD”, “deploy applications”, “application management”, “software center”, “create app packages” }

Dave R

but this will include server 2016 machines also?

nick giemsa

If you hit the value button in the criteria menu, it will display a list of build numbers

Frank Garufi Jr.

Was hoping that maybe you could update this or point me to where I can create a Device Collection for Windows 10 2016 ( 1607 ) Enterprise LTSB?


Does that query need to be amended for the November Update, now that the build number has changed to 10586? Or perhaps it would be a good idea to split the collections?

Prajwal Desai

I guess yes, the query needs to be updated. Will update it soon. Thanks for notifying me about that.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More