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

clip_image002

http://myitforum.com/cs2/blogs/andersonk/archive/2010/01/22/sccm-query-for-os-and-service-pack-with-count.aspx

你可能感兴趣的:(service,query,count,pack,SCCM)