function for getting a list of values in the specified context
optionally filter this list, based on the list from third parameter
public static getWMI ( $wmi, string $strClass, array $strValue = [] ) : array | ||
$wmi | holds the COM object that we pull the WMI data from | |
$strClass | string | name of the class where the values are stored |
$strValue | array | filter out only needed values, if not set all values of the class are returned |
return | array | content of the class stored in an array |