Question : Problem: Find last active date of SMS client?

What is the easiest way to see the last time a SMS client was active?  I have several machines that show up in the database that no longer exist.  For now, this is how we actually want it.  But I need to run a query and see what is really out there.  I tried to run a Last Hardware Scan query but this isnt the filter Im looking for.  Just need to show the last check-in time I guess you could call it.

Thanks!

Answer : Problem: Find last active date of SMS client?

See below SQL queries
SELECT SMS_R_System.Name0 AS [Computer Name], v_RA_System_IPAddresses.IP_Addresses0 AS [IP Address],
SMS_R_System.Active0 AS [Is SMS Client Active?], SMS_R_System.Obsolete0 AS [Is SMS Client Obsolete ?],
SMS_G_System_LastSoftwareScan.LastUpdateDate AS [Last Software Inventory],
___System_WORKSTATION_STATUS0.LastHWScan AS [Last Hardware Inventory], SMS_R_System.SMS_Unique_Identifier0 AS [SMS GUID], SMS_G_System_OPERATING_SYSTEM.Caption0 AS [Operating System]
FROM System_DISC SMS_R_System INNER JOIN
Operating_System_DATA SMS_G_System_OPERATING_SYSTEM ON
SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey INNER JOIN
SoftwareInventoryStatus SMS_G_System_LastSoftwareScan ON SMS_G_System_LastSoftwareScan.ClientId = SMS_R_System.ItemKey INNER JOIN
WorkstationStatus_DATA ___System_WORKSTATION_STATUS0 ON ___System_WORKSTATION_STATUS0.MachineID = SMS_R_System.ItemKey INNER JOIN
v_RA_System_IPAddresses ON SMS_R_System.ItemKey = v_RA_System_IPAddresses.ResourceID
WHERE (SMS_R_System.Active0 = 0)
ORDER BY SMS_R_System.Name0

Obsolete SMS Clients

SELECT SMS_R_System.Name0 AS [Computer Name], v_RA_System_IPAddresses.IP_Addresses0 AS [IP Address],
SMS_R_System.Active0 AS [Is SMS Client Active?], SMS_R_System.Obsolete0 AS [Is SMS Client Obsolete ?],
SMS_G_System_LastSoftwareScan.LastUpdateDate AS [Last Software Inventory],
___System_WORKSTATION_STATUS0.LastHWScan AS [Last Hardware Inventory], SMS_R_System.SMS_Unique_Identifier0 AS [SMS GUID],
SMS_G_System_OPERATING_SYSTEM.Caption0 AS [Operating System]
FROM System_DISC SMS_R_System INNER JOIN
Operating_System_DATA SMS_G_System_OPERATING_SYSTEM ON
SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey INNER JOIN
SoftwareInventoryStatus SMS_G_System_LastSoftwareScan ON SMS_G_System_LastSoftwareScan.ClientId = SMS_R_System.ItemKey INNER JOIN
WorkstationStatus_DATA ___System_WORKSTATION_STATUS0 ON
___System_WORKSTATION_STATUS0.MachineID = SMS_R_System.ItemKey INNER JOIN
v_RA_System_IPAddresses ON SMS_R_System.ItemKey = v_RA_System_IPAddresses.ResourceID
WHERE (SMS_R_System.Obsolete0 = 1)
ORDER BY SMS_R_System.Name0
Random Solutions  
 
programming4us programming4us