So, Let’s say you need to see all machines that contain a specific software package, you can use sccm’s gui, or you can do it in SQL, where you can act on the results:
Â
declare @LookupString as nvarchar
set @LookupString = '%'
Â
SELECTÂ Â Â Â vrs.Name0
FROM v_r_system AS vrs
JOIN v_GS_INSTALLED_SOFTWARE AS VIS ON VIS.resourceid = vrs.resourceid
JOIN v_GS_SoftwareFile AS sf ON SF.resourceid = vrs.resourceid                        Â
WHEREÂ Â Â Â VIS.productname0 LIKE @LookupString
GROUP BY vrs.Name0
NAME0
LSEU0778 |
LSTW0631 |
MACS4268 |
LSAM9049 |
LSGR0590 |
Discover more from Christine Alifrangis
Subscribe to get the latest posts sent to your email.