I had a requirement to count the different versions of Windows Server but only on physical hardware. This SCCM report does this by excluding VMWare and Hyper-V machines: SELECT OPSYS.Caption0 as C054, COUNT(*) AS ‘Count’ FROM v_GS_OPERATING_SYSTEM OPSYS full Join v_GS_COMPUTER_SYSTEM On v_GS_COMPUTER_SYSTEM.ResourceID = OPSYS.ResourceID inner join v_R_System sys on OPSYS.ResourceID=sys.ResourceID where OPSYS.Caption0 LIKE ‘%server%’ [...]