Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Windows 10 collection SCCM query

syed sameer

Well-Known Member
Messages
144
Reaction score
2
Points
18
Hi Prajwal


how are you doing ?

is there any Query for windows 10 Client machines ? I use below Query to add Automatic Win 10 clients to Device collection , is it right one ?

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%"
 
No the link points to queries that will collect windows 10 pro and windows 1o enterprise computers. What exactly are you looking for ?.
 
Hi Prajwal

I still waiting for your reply for Win 10 Query for 32 and 64 bit

what I need exactly is I created Windows 10 device collection now I want whatever new Windows 10 will add to my domain network it should automatically add to win10 device collection

I think you got my point now
 
@syed sameer - I haven't tested the below queries, you could try and let me know if they work.

For 32 bit Windows 10 -

Code:
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_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion = “%Microsoft Windows NT Workstation 10%” and SMS_G_System_COMPUTER_SYSTEM.SystemType = "X86-based PC"

For 64 bit Windows 10 -

Code:
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_SYSTEM on SMS_G_System_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion = “%Microsoft Windows NT Workstation 10%” and SMS_G_System_SYSTEM.SystemType = "X64-based PC"
 
Hi Prajwal

non of the above Query working see the attachment I cannot save the query
 

Attachments

  • Win10 Automatic query error.png
    Win10 Automatic query error.png
    43.4 KB · Views: 4
@syed sameer - Sorry for posting the incorrect query. Try this one for 64 bit windows 10 and let me know if it works
Code:
select *  from  SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation 10" and SMS_G_System_SYSTEM.SystemType = "X64-based PC"
 
thanks above query taken without error

but is this automatic query right ? I mean Windows 10 client will add automatically using this Query
 
Hi Prajwal

I added above query after I added it 2 PC removed from Windows 10 Device collection then I add below Build query those pc came back in device collection, issue still occurring

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 = "10240"
 

Forum statistics

Threads
7,025
Messages
27,490
Members
17,677
Latest member
Nairolf

Trending content

Back
Top