Mike Rockwell (Progress Software) asked a question.

Devices with a specific Action Policy assigned

[Originally posted by Christian Lawson]

This group shows all devices that have a particular action policy assigned to the device. Replace the "My Policy" text with the name of your policy. Note: This only displays devices that have the action policy assigned to the entire device. It will not display devices that have said policy assigned directly to an active monitor assigned to the device.

 

  1. SELECT DISTINCT Device.nDeviceID
  2. FROM Device
  3. JOIN ActionPolicy
  4. ON Device.nActionPolicyID = ActionPolicy.nActionPolicyID
  5. WHERE ActionPolicy.sPolicyName = N'My Policy'
  6. AND Device.bRemoved = 0