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.
AFAIK 没有 WMI 类或属性可以直接以可靠的方式检测 PCI Express 设备,但作为解决方法,您可以检查WMI 类属性中的PCI Express
字符串。Description
Win32_PnPEntity
SELECT * FROM Win32_PnPEntity Where Description LIKE "%PCI Express%"