1 Votes

Relevance #2998466
Log In or Register to download the BES file, and more.


Relevance

 
  * Results in a true/false
Show indented relevance
/* Warning: This is very slow, and not recommended for use within a fixlet's or task's relevance! */ unique values of (string values whose (it != "Generic volume" AND it != "HID-compliant consumer control device" AND it != "HID-compliant device" AND it != "USB Composite Device" AND it != "Generic USB Hub" AND it != "USB Input Device" AND it does not start with "USB Root Hub") of selects (("Caption from Win32_PnPEntity where DeviceID='" & it as string & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of wmi )) of wmi)

Property Details

ID2998466
Status
Added by
Last Modified by on 11/20/2013 11:47:09 AM
Counters 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Sharing

Relevance Image Sharing:

<a href='https://bigfix.me/cdb/relevance/2998466'><img src='https://bigfix.me/cdb/relevanceimage/2998466?width=400' border='0'></a>
Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
Thanks! This is so old I don't remember why I wrote it. I'll have to dig into this a little deeper sometime.
iLorenz -
/* full one if someone is interested. It takes roughly 1/4 of the time vs the original one on my pc */ unique values of string values whose (it != "Generic volume" AND it != "HID-compliant consumer control device" AND it != "HID-compliant device" AND it != "USB Composite Device" AND it != "Generic USB Hub" AND it != "USB Input Device" AND it does not start with "USB Root Hub") of selects ("Caption from Win32_PnPEntity where DeviceID='§'" & concatenation "" of (" or DeviceID='" & it & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of it)) of wmi
iLorenz -
/* late to the party and a brutal solution, but it is *much* faster :) */ unique values of string values of selects ("Caption from Win32_PnPEntity where DeviceID='§'" & concatenation "" of (" or DeviceID='" & it & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of it)) of wmi