SCCM Query Last Harware Scan
select
SMS_G_System_LastSoftwareScan.LastScanDate,
SMS_R_System.Name,
SMS_G_System_WORKSTATION_STATUS.LastHardwareScan
from SMS_R_System inner join SMS_G_System_LastSoftwareScan on SMS_G_System_LastSoftwareScan.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_WORKSTATION_STATUS on SMS_G_System_WORKSTATION_STATUS.ResourceID = SMS_R_System.ResourceId order by SMS_G_System_WORKSTATION_STATUS.LastHardwareScan
SMS_G_System_LastSoftwareScan.LastScanDate,
SMS_R_System.Name,
SMS_G_System_WORKSTATION_STATUS.LastHardwareScan
from SMS_R_System inner join SMS_G_System_LastSoftwareScan on SMS_G_System_LastSoftwareScan.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_WORKSTATION_STATUS on SMS_G_System_WORKSTATION_STATUS.ResourceID = SMS_R_System.ResourceId order by SMS_G_System_WORKSTATION_STATUS.LastHardwareScan