SCCM query/collection Windows 7 x64
Hi,I'd like to create a collection in System Center Configurations Manager 2007 R2 SP2, that will give me all windows 7 x64 machines. (To help with my Win 7 deployment)I have this query but it doesn't seem to be working: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_G_System_COMPUTER_SYSTEM.SystemType ="x64-based PC" and SMS_R_System.OperatingSystemNameandVersion like "%Windows 7%")
November 4th, 2009 8:42am

Here you go...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 inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Caption like "%7%" and SMS_R_System.Client = 1 and SMS_R_System.Obsolete = 0 and SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC"If you dont want to filter obsolete and client installed machines remove " SMS_R_System.Client = 1 and SMS_R_System.Obsolete = 0 and" Surendar Reddy
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2009 8:59am

SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC" Are you sure that this will only list computers that are running Win7 x64? SystemType is just the underlying PC architecture and it might be possible that there's Win7 x86 running on a x64 platform.
November 4th, 2009 10:26am

It's als about OS version that is running. so you are good with it. Surendar Reddy
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2009 11:02am

This is what worked for me in the endselect 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 like "%Workstation 6.1%" or SMS_R_System.OperatingSystemNameandVersion like "%Windows 7%" and SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC"http://www.jannesalink.com/blog1.php/2009/12/23/where-is-my-all-windows-7-systems-collec
January 11th, 2010 8:00am

Youre right, not the way to do this. We have 32-bit windows 7's on x64 capable hardware because of some of the software is not 64 bit ready. When I made the query (that's suggested as answer) all those 32-bit Windows 7 were found too. And all the samse machines were found after I changed SMS_G_System_COMPUTER_SYSTEM.SystemType = "X86-based PC" This seemed to produce better results: 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 like "%Workstation 6.1%" or SMS_R_System.OperatingSystemNameandVersion like "%Windows 7%") and SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC" Just put the two first terms inside () so the are treated as pair like they should be.
Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2011 6:41am

thats what work for me about all win 7 os computer: 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 = "Microsoft Windows NT Workstation 6.1"
March 2nd, 2011 7:31am

Query to find all Windows 7 – x64 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 inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC" and SMS_G_System_OPERATING_SYSTEM.Caption like "Microsoft Windows 7%" And the query for Windows 7 -x86 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 inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = "X86-based PC" and SMS_G_System_OPERATING_SYSTEM.Caption like "Microsoft Windows 7%"
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2012 8:46pm

It seems this really needs to be tested, because "X64-based PC" relays on hardware, not OS architecture, right? So if I would install Win7 OS x86 on 64-bit machine, it should pop-up on Windows 7 x64 query, am I wrong? Or can someone really confirm that some of these queries really gives proper results?
June 25th, 2012 1:38am

Hi All, I am looking for making a collection of Win7 32bit OS and the above query work for some extent. Problem is it fails to add 64bit(architecture) systems with Win7 32bit OS installed. Any suggestions? Regards, Fred
Free Windows Admin Tool Kit Click here and download it now
July 5th, 2012 10:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics