i want to get just the model name of the gpu by searching for the "$deviceid".
So this is what i have at the moment:
Install-Module PSParseHtml
$deviceid = "0x1f02"
$Url = 'https://envytools.readthedocs.io/en/latest/hw/pciid.html#gpu'
$AllTables = ConvertFrom-HtmlTable -Url $Url
$AllTables | Where-Object {$_."device id" -match $deviceid}
My output is this:
device id product
--------- -------
0x1f02 TU106 [GeForce RTX 2070]
0x1f07 TU106 [GeForce RTX 2070]
0x1f08 TU106 [GeForce RTX 2060]
0x1f10 TU106 [GeForce RTX 2070 Mobile]
0x1f11 TU106 [GeForce RTX 2060 Mobile]
0x1f50 TU106 [GeForce RTX 2070 Mobile]
0x1f51 TU106 [GeForce RTX 2060 Mobile]
How can i get now as output only the gpu model name "GeForce RTX 2070" with the matching device id "0x1f02"
Thank you