SCCM SQL Query for Software not in Add Remove Programs
If you are looking for an SCCM SQL query to create a report to search for machines which do not have a particular software installed, you can use the following:
Select Distinct sys.Netbios_Name0, sys.User_Domain0, sys.User_Name0 FROM v_R_System sys JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID WHERE sys.ResourceID not in (select sys.ResourceID from v_R_System sys JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID WHERE DisplayName0 = @displayname)
Then you can use the variable @displayname to choose from a drop down of software that is in the SCCM database pulled from client machines. The query you can use for that is:
These may also help you...
- How to Mass Unfollow on Instagram Online
- Windows Server 2008 R2 Evaluation Product Keys
- How to Mass Unfollow Everyone on Twitter
select DisplayName0 from v_Add_Remove_Programs
You should be able to use these to create a report that will prompt for a selection from all the available data.
If you have any questions or feedback about this post, or if you would like us to create any queries for you, please go ahead and leave us a message below in the comments section and we will get back to you as quick as we can.