2

Does anybody know the way to get devices attached to PCI Express slots by using WMI?

I've been using Win32_PnPEntity class, but I can't make a distinguish between PCI and PCI Express devices.

4

1 回答 1

3

AFAIK 没有 WMI 类或属性可以直接以可靠的方式检测 PCI Express 设备,但作为解决方法,您可以检查WMI 类属性中的PCI Express字符串。DescriptionWin32_PnPEntity

SELECT * FROM Win32_PnPEntity Where Description LIKE "%PCI Express%"
于 2012-10-27T15:04:19.470 回答