Sunday, March 2, 2014

create Collection for Heartbeat ( Not Send By Last 60 Days )

create Collection for Heartbeat ( Not Send By Last 60 Days )
WQL :

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select ResourceID from SMS_R_System where AgentName in ("Heartbeat Discovery") and DATEDIFF(day,AgentTime,GetDate())<=60)


Not : you can change 60 as you like

No comments:

Post a Comment