Is there a way to create a filter that displays which computers require a reboot/restart?
There is the "Restart Status" Report (under Reports > All Reports > Software > Patch Management > Remediation Status > Restart Status) but what is needed is to be able to create a filter that shows the computers that require a reboot/restart just like the report does. This is needed so it can easily add the filter to a Target and apply it to a policy to reboot the computers, etc.
ITMS 8.6, 8.7
Patch doesn't have a filter based on "Restart Status". Moreover, the count of Patch filters, which are used in our scenarios, is very limited:
The following query can be used to create a custom filter:
SELECT DISTINCT cmp.GuidFROM vComputerResourceEx cmpLEFT JOIN vPMCore_GetAllRetiredMachines ret ON ret.Guid = cmp.Guid JOIN Inv_Software_Update_ WHERE ret.Guid IS NULL -- exclude the retired machine AND sus.DistributionStatus = 65536 -- STATE_REBOOT_PENDINGAND cmp.IsLocal = 1