This SQL query will locate machines in your SMS inventory that have reported a hardware scan in the last week or 7 days.
Sql Query:
Select
CS.Name0 'Machine Name',
WS.LastHwScan 'Inventory TimeStamp',
DateDiff(D, WS.LastHwScan,
GetDate()) 'Inventory Age In Days:)'
From WorkstationStatus_Data WS
Join System_Disc CS on WS.MachineId = CS.ItemKey
Where (DateDiff(D, WS.LastHwScan, GetDate()) >= 7)
No Comments