Right now, I am getting two separate objects
- A Win32_NetworkAdapter WMI object
- A Win32_PnpSignedDriver WMI object
In my previous scripts, I've made sure I was calling separate objects, and relating them by the GUID
$mydev = Get-WmiObject -class Win32_NetworkAdapter | Where-Object {$_.pnpdeviceid -like "*VEN_0000&DEV_00AA*"}
If ($mydev.GUID -eq $relatedobj.ParentID)
{
action
}
But there is no GUID/ParentID/etc. property for a Win32_PnpSignedDriver object. Is there another way to obtain information about a device's drivers (specifically, the driver version), and also obtain the GUID of the device? Is it possible to do this win the Win32_PnpSignedDriver, and I'm just not seeing it?