/build/static/layout/Breadcrumb_cap_w.png

Machines that failed to patch in last 30 days

 Include Patch ID, Vendor Name, Patch installation date, Deploy status, IP address, Last logon user of each failed patch,

and group by machine.


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
SELECT PP.VENDOR AS VENDOR, PP.IDENTIFIER, MS.DEPLOY_STATUS_DT AS DEPLOYED_DATE, MS.DEPLOY_STATUS, M.NAME AS ComputerName,IP, M.USER_LOGGED as USER_LOGGED FROM PATCHLINK_MACHINE_STATUS MS JOIN KBSYS.PATCHLINK_PATCH PP ON PP.UID = MS.PATCHUID JOIN MACHINE M ON M.ID = MS.MACHINE_ID WHERE MS.DEPLOY_STATUS NOT LIKE '%SUCCESS%' AND MS.DEPLOY_STATUS_DT > CURDATE() - INTERVAL 30 DAY ORDER BY M.NAME
Posted by: dugullett 11 years ago
Red Belt
2
SELECT PP.VENDOR AS VENDOR, PP.IDENTIFIER, MS.DEPLOY_STATUS_DT AS DEPLOYED_DATE,

MS.DEPLOY_STATUS, M.NAME AS ComputerName,IP,

M.USER_LOGGED as USER_LOGGED

FROM PATCHLINK_MACHINE_STATUS MS

JOIN KBSYS.PATCHLINK_PATCH PP ON PP.UID = MS.PATCHUID

JOIN MACHINE M ON M.ID = MS.MACHINE_ID

WHERE MS.DEPLOY_STATUS NOT LIKE '%SUCCESS%' AND

MS.DEPLOY_STATUS_DT > CURDATE() - INTERVAL 30 DAY

ORDER BY M.NAME
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ