how to get list of bus number associated with pci devices?
7,593
I've ended up up using a short script using reg.exe to go through the PCI devices list in the registry. thanks for all the suggestions.
edit: here it is for everyone: https://gist.github.com/anonymous/c59b373ef320c9697710
Related videos on Youtube
Author by
marekp
Updated on September 18, 2022Comments
-
marekp over 1 year
I'm trying to get a list of all the PCI associated buses on a Windows system. I know I can use wmic or devcon to get a list of all the devices, but how would I go about figuring their respective buses?
edit: preferably without using 3rd party software
This info is available via the registry:
-
DavidPostill over 8 yearsPowershell
Get-WmiObject –Class Win32_Bus
-
DavidPostill over 8 years
-
Smock over 4 years@DavidPostill if you're linking to SIV, then thank you, it's great!
-
-
marekp over 8 yearssaw the answers suggesting 3rd party solutions before, trying to figure out if it's doable without. thanks anyway :)
-
Jamal over 8 yearsJust wait until you reach 50 rep to comment. Don't post comments as answers to get around that.
-
ART over 8 years@Jamal : okay will wait.
-
marekp over 8 yearsadded link to gist
-
G-Man Says 'Reinstate Monica' about 5 years@GeorgeSovetov Thanks for fixing the broken link, but, when you edit a post, please improve all the things that need to be improved.
-
Ravindra Bawane over 3 yearsEveryone else already answered for Windows because the question was about a Windows computer to begin with.