Solved

problem with collection in SCCM

Posted on 2010-09-16
1
544 Views
Last Modified: 2012-05-10
Hi,

I am trying to create a collection that contains all the machines in my company that have autocad 2006 LT installed. I am doing this by querying the add/remove attribute.

here is the sql :

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_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "AutoCAD LT 2006 - English"


Can anyone help?

Cheers
0
Comment
Question by:chqshaitan
1 Comment
 
LVL 31

Accepted Solution

by:
merowinger earned 250 total points
ID: 33805701
Ok so what's the problem. The query looks good.

Try to execute the followinf query directly on your SQL Server:
SELECT Name0,DisplayName0
      ,InstallDate0
      ,Publisher0
      ,Version0
  FROM [SMS_CM1].[dbo].[v_Add_Remove_Programs]
Inner Join v_R_System on (v_R_System.ResourceID = v_Add_Remove_Programs.ResourceID)
Where DisplayName0 = 'AutoCAD LT 2006 - English'


If no result are returned than the application is maybe listed with another DisplayName. The Try the following
...
Where DisplayName0 Like '%AutoCAD%'
...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

20 Experts available now in Live!

Get 1:1 Help Now