Java 8 WMI query

In the past using a WMI query to filter computers with Java 7 the query looked like

which fairly quickly returned results.  Now with Java 8 the folder is in a format of c:\Program Files\Java\jre8.0_xx which causes the query to run for about 10 minutes.  In searching for a better way I came up with

which is reasonably fast, since I wanted both Java 7 and 8 my final query was

 

Leave a Reply

Your email address will not be published. Required fields are marked *