Windows Equivalent for lspci?

Solution 1:

I don't know about a command that will do this, but there are a number of programs that will do this. My favorite is SIW. They have an installable version as well as a standalone version.

Solution 2:

There is what seems to be an lspci (and setpci) port for Windows, which is awesome.

https://eternallybored.org/misc/pciutils/

Example to generate a system toplogy log in various verbosity:

echo lspci simple list > lspci_topo.log
lspci -M -nn >> lspci_topo.log
echo. >> lspci_topo.log

echo lspci tree >> lspci_topo.log
lspci -t -vv -nn >> lspci_topo.log
echo. >> lspci_topo.log

echo lspci detailed list >> lspci_topo.log
lspci -M -vv -nn >> lspci_topo.log
echo. >> lspci_topo.log

echo lspci AMD and Nvidia GPU raw hex config space >> lspci_topo.log
lspci -mm -d 1002: -v -xxx -nn >> lspci_topo.log
lspci -mm -d 1022: -v -xxx -nn >> lspci_topo.log
lspci -mm -d 10DE: -v -xxx -nn >> lspci_topo.log

Solution 3:

As far I know, there is no way to do that in command line in windows.

Windows has Windows Management Instrumentation command line (wmic) where you could list processes and some hardware listing.

In order to identify hardware components I use HWiNFO freeware. I've been using it for 15 years for this purpose. It's a malware-free solution.