How do I run a query for patch compliances?
I need to produce a report for the Auditors, they need to know computers and out compliance patches(Software and Windows Update).
Refer to Tools > Security and Compliance > Patch and compliance. It comes as part of the product, but content for it is by subscription. If you have it there is some reporting that can be gathered out of there.
Additionally you could create a query against Detected Patch and Compliance Definitions, Patch and Compliance Definitions or Security > Patch History . That would be a query that you would have to inject all of the patches you were attempting to discover manually.