Hi All,
The query i am looking for is to "Create a collection of computers that has not been windows update from last 30 days". I have got some Powershell scripts which can perform the tasks, but I require this can be done from by WQL or SQL query.
Below are some related powershell article:
http://www.powershelladmin.com/wiki/Check_when_servers_were_last_patched_with_Windows_Update_via_COM_or_WSUS
https://gallery.technet.microsoft.com/scriptcenter/4d70947e-21b1-4a45-9d78-a7198ed55cca
Please share if somebody have the script.