WQL Query for Last policy request

Hi,

I would like to get a WQL query which reports the clients with last specified numbers of days since the last policy request

Also with their OS,AD site, Machine Type (laptop or desktop)

I searched but all came up with last hardware and software inventory but could not find this.

Thanks

November 5th, 2014 10:39am

Please assist
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2014 4:00am

Hello,

As far as I know, there is a client log PolicyAgentProvider.logwhich may help us find out the information. However, you will need script to collect all the logs over your site.

November 6th, 2014 9:07am

I'm not near a lab right now, but I believe that info is in the db, at least the last 'successful' policy request. If you need to find unsuccessful policy requests, that may be a different story.  If you can wait a few days until I'm back at my lab, I'll see if I can find that.
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2014 11:23am

The last policy value is in v_CH_ClientSummary.

Here's a basic from query, adjust it to your need.

SELECT v_CH_ClientSummary.MachineID, v_CH_ClientSummary.NetBiosName,
  v_CH_ClientSummary.LastStatusMessage, v_CH_ClientSummary.LastPolicyRequest,
  v_CH_ClientSummary.LastSuccessfulPing, v_ClientHealthState.HealthStateName
FROM v_CH_ClientSummary INNER JOIN v_ClientHealthState ON
  v_CH_ClientSummary.NetBiosName = v_ClientHealthState.NetBiosName
ORDER BY v_CH_ClientSummary.NetBiosName

November 6th, 2014 12:54pm

Sherry, yes i would need the information when you are back.

Thanks Benoit, i believe thats SQL ? Would be great if i can get WQL.

Free Windows Admin Tool Kit Click here and download it now
November 11th, 2014 5:57am

Hey Sherry,

Any chance getting the required query as the concern has come up again :) 

Thanks

March 23rd, 2015 9:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics