Hi
I have 2 Wmi object with one of them being a property of the other.
here is my code.
$connections = get-wmiobject -class 'HNet_Connection' -Namespace 'root\Microsoft\HomeNet' ;
$connectioName = 'ethernet';
#Write-Host $connections;
foreach ($connection in $connections)
{
if ( $connection.Name -eq $connectioName)
{
$connectionx = $connection;
Write-Host $connectionx;
}
}
$connectionproperties = get-wmiobject -class 'HNet_Connectionproperties' -Namespace 'root\Microsoft\HomeNet' ;
}
So I have the connection object now I want to use it as input parameter to find the associated connection properties and I have no Idea how to do it. I don't want to parse anything; I can do some parsing on the string but for sure there should be a way to use this object as is.
Any input on how to use object in the where ( simple WQL query instead of power shell)
select * from something where something.otherobject = otherobject;
something like above.
Any ideas.
Thanks.