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 4:42pm
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 4:59pm
It's als about OS version that is running. so
you are good with it.
Surendar Reddy
November 4th, 2009 7:02pm
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
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2010 4:00pm
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.
March 13th, 2011 10:58am
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"
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2011 11:48am