Quantcast
Viewing all articles
Browse latest Browse all 4762

help on x86/x64 query for version of software

Hi

I've created a query to check for software installed..

but I need to check version as well.. can someone guide me.. I keep getting errors in query when I add version..

The query is:

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.ResourceId 
in 
(select SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID     
from       
SMS_G_System_ADD_REMOVE_PROGRAMS     
where      
SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName 
like "%hefexcelbudgetark%") 
or 
SMS_R_System.ResourceId 
in 
(select SMS_G_System_ADD_REMOVE_PROGRAMS_64.ResourceID     
from       
SMS_G_System_ADD_REMOVE_PROGRAMS_64     
where      
SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName 
like "%hefexcelbudgetark%")

I need to add:

and 
SMS_G_System_ADD_REMOVE_PROGRAMS.Version = "1.0.2"

Any help will be much appreciated..!


Kindest regards, Martin


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>