January 2010 - Posts

SCCM Query for total count of OS and Service Pack

This SQL query can be used to find the overall count of Operating systems and their Service packs

SELECT Caption0 as 'Operating System',CSDVersion0 as 'Service Pack', COUNT(*) AS 'Count'
FROM v_GS_OPERATING_SYSTEM,v_R_System
WHERE v_GS_OPERATING_SYSTEM.Resourceid=v_R_System.Resourceid
GROUP BY Caption0,CSDVersion0
ORDER BY Caption0,CSDVersion0

OS_Count

Posted by andersonk | with no comments
Filed under: ,

SCCM Query for identifying Software based on Executables

This SQL query can be used to search for installed software based on their executables

SELECT VRS.Name0 as 'Computer Name',
VRS.User_Name0 as 'User Name',
SF.FileName as 'File Name',
SF.FileDescription as 'File Description',
SF.FilePath as 'File Path',
SF.ModifiedDate as 'Modified Date'
FROM v_R_System VRS,v_GS_SoftwareFile SF
WHERE SF.ResourceID = VRS.ResourceId
AND SF.FileDescription = 'Google Talk'
ORDER BY VRS.Name0

GT

Posted by andersonk | with no comments
Filed under: ,