Solved

Collection help

Posted on 2010-08-30
8
520 Views
Last Modified: 2013-11-21
Hi there,

I would like to have a collection for All Windows XP 32bit computer with AutoCAD2009 but also does not have AutoCAD2010.

I would also like to have another collection with All Windows XP 64bit with AutoCAD2009 and AutoCAD 2010.

Thanks,
0
Comment
Question by:Zak
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 6

Expert Comment

by:Exemplar
ID: 33566700
Hello smartmanwin!

I think I can help you out with this one.  Please follow the directions below and you should be able to get an accurate account of the AutoCAD installs in your organization.

Part I.  Create "with" Collections
To begin with, you need to create the collection that identifies which systems have AutoCAD2009 installed for both WinXP/32 and WinXP/64.  This can be done in a relatively easy fashion.  Create two new collections and name them like:  "WinXP-32bit with AutoCAD2009" and "WinXP-64bit with AutoCAD2009"

There are a few WQL queries for this sort of thing, but I usually prefer this query over the Add/Remove Programs query:
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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceID where SMS_G_System_SoftwareFile.FileName = "AAAAA" and SMS_G_System_SoftwareFile.FileVersion >= "BB" and SMS_G_System_SoftwareFile.FilePath like "%\\Program Files\\CCCCC\\CCCCC\\%"

Key:
AAAAA = the .exe file for AutoCAD2009
BB = .exe file version (you get this in the .exe properties)
CCCCC = specific folders within C:\Programs Files where the .exe resides

You will want to point the "WinXP-32bit with AutoCAD2009" collection at a previously created collection that identifies All WinXP 32bit systems.  You will want to point the "WinXP-64bit with AutoCAD2009" collection at the collection that identifies All WinXP 64bit systems.  This can be done by using Collection Limiting.

At this time, you have created two collections that identify all WinXP systems that DO have AutoCAD2009 installed.

Part II. Write down Collection IDs
Next, please right-click --> properties of the two collections and write down the Collection IDs.  Keep the IDs ready, you will need them shortly.

Part III.  Create "not in" Collections
Now we need to move on to the 'without AutoCAD' collections.  Again, you need to create two new collections, name them:  "WinXP-32bit without AutoCAD2009" and "WinXP-64bit without AutoCAD2009"

The WQL query for this is commonly referred to as the "not in" query.  Use this query on the two 'without' collections:
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 ResourceId not in (select ResourceID from SMS_CM_RES_COLL_EEEEEEEE)

Key:
EEEEEEEE = Collect ID of first two collections

Again you will want to utilize the Collection Limiting function and point at the same collections as the first two collections, in this case, the All WinXP 32bit Systems and the All WinXP 64bit Systems.

When this is complete, you have two new collections that identify which servers DO NOT have AutoCAD2009 installed.

Part IV.  End Results
If you set this up correctly, as ConfigMgr runs its discoveries, these collections will update accordingly and you will have an accurate look at your organization's workstation to AutoCAD installs.

/cheers
0
 

Expert Comment

by:jparekh
ID: 33566734
You can get the OS from System Resource (or Operating Systems table).  I don't have AutoCad installed but you can query the Add Remove Programs for the install.  See the example below.. I'm looking for Windows XP machines and program that starts with Demo.
=

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_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion like "%Workstation 5.1%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "Demo%"

Open in new window

0
 

Expert Comment

by:jparekh
ID: 33566848
x32 machines only

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 = "X86-based PC"

Look for x64 only

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"
0
 

Author Comment

by:Zak
ID: 33583460
I do not want to list the PCs that have both version of AutoCAD 2009/10. I just want to list the PCs that have AutoCAD2009 but do not have AutoCAD 2010. How can I do that with one query. Thats all I am asking.
The query below will also list the PCs that have AutoCAD 2009 and AutoCAD 2010. I want to exclude the PCs that already have AutoCAD 2010.  
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_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = "X64-based PC" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "AutoCAD 2009"
 Regards
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Zak
ID: 33583502
I will just exclude the computers by Computer names they are just few of them. That will be my last resort.
Thanks,
0
 
LVL 6

Expert Comment

by:Exemplar
ID: 33585558
Using the query that I identified above (again below), you can easily differentiate between the two AutoCAD installs based upon the file version.

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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceID where SMS_G_System_SoftwareFile.FileName = "AAAAA" and SMS_G_System_SoftwareFile.FileVersion >= "BB" and SMS_G_System_SoftwareFile.FilePath like "%\\Program Files\\CCCCC\\CCCCC\\%"

Thanks,
Ex
0
 
LVL 6

Accepted Solution

by:
TarekIsmail earned 500 total points
ID: 33592256
All Windows XP 32bit computer with AutoCAD2009 but also does not have AutoCAD2010.
===========================================================================
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_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId 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 inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceId = SMS_R_System.ResourceId where (SMS_G_System_INSTALLED_SOFTWARE.ProductName = "autocad2009" and SMS_G_System_COMPUTER_SYSTEM.SystemType = "X86-based PC" and SMS_G_System_OPERATING_SYSTEM.Name like "%XP%") and SMS_G_System_SYSTEM.Name not in (select SMS_R_System.Name from  SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName = "autocad2010")


 All Windows XP 64bit with AutoCAD2009 and AutoCAD 2010.
==================================================


select SMS_R_System.Name 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 inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC" and SMS_G_System_INSTALLED_SOFTWARE.ProductName = "autocad2010" and SMS_G_System_INSTALLED_SOFTWARE.ProductName = "autocad2009" and SMS_G_System_OPERATING_SYSTEM.Name like "%XP%"

0
 

Author Closing Comment

by:Zak
ID: 33608326
to the point.
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Case Summary: In this Article we introduce the new method to configure the default user profile using Automated profile copy with sysprep rather than the old ways such as the manual copy of a configured profile to default user profile Old meth…
The environment that this is running in is SCCM 2007 R2 running on a Windows 2008 R2 server. The PXE Distribution point is running on its own Windows 2008 R2 box. This is what Event viewer showed after trying to start the WDS service:  An erro…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now