Someone else helped me out with a similar query a while back but I cannot find the initial post. I have modified it to meet my needs. Here is the query that you can use.
SELECT --*
c.[Guid]
, v.[name]
, v.[OS Name]
, v.[OS Revision]
, v.[user]
, v.[IP Address]
, v.[Domain]
, v.[ismanaged]
FROM ( SELECT DISTINCT _ResourceGuid
FROM Inv_AeX_AC_Client_Agent
WHERE [Agent Class Guid] = '43043A36-0302-4375-8086-F7DD368DCADC' -- Windows Altiris Agent
AND [Product Version] LIKE '7.5.%' -- all AltirisAgent 7.5 and any SP
--AND [Build Number] < ???? -- only AltirisAgent 7.5
) AS a
JOIN vRM_Computer c ON c.[Guid] = a._ResourceGuid
join vcomputer v on v.[guid] = c.[guid]
-- JOIN Inv_AeX_AC_Identification i on i._ResourceGuid = c.[Guid]
LEFT JOIN ( SELECT _ResourceGuid
FROM Inv_AeX_AC_Client_Agent
WHERE [Agent Class Guid] = '11E36ED4-A571-4304-90AA-F0CD2366C335' -- Windows inventory Agent (use "select * from Inv_AeX_AC_Client_Agent" to determine which GUID you need to use. Replace this GUID for the agent you want to search on)
) AS s ON s._ResourceGuid = c.[Guid]
WHERE c.IsManaged = 1
AND v.[OS Name] not like '%server%' --excluding servers
AND v.[OS Name] not like '%embed%' --excluding embedded
-- AND ( i.[System Type] = 'Win32' OR i.[System Type] = 'Win64' )
AND s._ResourceGuid IS NULL
order by v.[name]
I hope this helps! Sorry to whomever provided me with the base query to begin with...want to give you props!
Thanks!