Update Wua with a status other than OK
Published: March 8, 2024 - 2:58 PM
Hello,
I'd like to create a report for machines with a status other than "OK" for WUA.
I tried this, but my WHERE clause is causing a problem.
If I remove the WHERE clause, it displays everything
: SELECT DISTINCT hosts.computer_name, hosts.uuid, waptwua_status->'status' as status
FROM hosts
WHERE waptwua_status->'status' != 'OK'
ORDER BY hosts.computer_name ASC;
Thank you in advance for your help.
I'd like to create a report for machines with a status other than "OK" for WUA.
I tried this, but my WHERE clause is causing a problem.
If I remove the WHERE clause, it displays everything
: SELECT DISTINCT hosts.computer_name, hosts.uuid, waptwua_status->'status' as status
FROM hosts
WHERE waptwua_status->'status' != 'OK'
ORDER BY hosts.computer_name ASC;
Thank you in advance for your help.