我想从 Devcon.exe 输出中选择一个对象。
PCI\VEN_8086&DEV_2822&SUBSYS_1790103C&REV_04\3&11583659&0&FA
Name: Intel(R) Chipset SATA/PCIe RST Premium Controller
Driver node #0:
Inf file is C:\Windows\INF\iastorav.inf
Inf section is iaStorAVC_inst
Driver description is Intel Chipset SATA RAID Controller
Manufacturer name is Intel Corporation
Provider name is Intel Corporation
Driver date is 2/7/2018
Driver version is 15.44.0.1010
Driver node rank is 16711683
Driver node flags are 00102044
Inf is digitally signed
Driver node #1:
Inf file is C:\Windows\INF\oem9.inf
Inf section is iaStorAC_inst_8
Driver description is Intel(R) Chipset SATA/PCIe RST Premium Controller
Manufacturer name is Intel Corporation
Provider name is Intel Corporation
Driver date is 5/9/2019
Driver version is 17.5.0.1017
Driver node rank is 8388611
Driver node flags are 00003044
Inf is digitally signed
我想Driver version
通过映射来获得Driver description
. 我试过这种方式,但我无法获得驱动程序版本。
$hardwareid = "PCI\VEN_8086&DEV_2822&SUBSYS_1790103C&REV_04"
$Description = "Intel(R) Chipset SATA/PCIe RST Premium Controller"
$DrNode = & .\devcon.exe /drivernodes "$hardwareid"
$Ver = $DrNode | Where-Object {$_ -like "*$Description*"} | Select-Object Driver version
任何人都可以提供想法。非常感谢!