We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec50fc commit 4721a10Copy full SHA for 4721a10
wmi-adapter/wmi.resource.ps1
@@ -96,7 +96,7 @@ elseif ($Operation -eq 'Get')
96
$wmi_namespace = $type_fields[0].Replace('.','\')
97
$wmi_classname = $type_fields[1]
98
99
- #TODO: identify key properties and add WHERE clause to the query
+ # TODO: identify key properties and add WHERE clause to the query
100
if ($r.properties)
101
{
102
$query = "SELECT $($r.properties.psobject.properties.name -join ',') FROM $wmi_classname"
@@ -105,6 +105,7 @@ elseif ($Operation -eq 'Get')
105
$first = $true
106
foreach ($property in $r.properties.psobject.properties)
107
108
+ # TODO: validate property against the CIM class to give better error message
109
if ($null -ne $property.value)
110
111
$useWhere = $true
0 commit comments