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

Share:
7,593

Related videos on Youtube

marekp
Author by

marekp

Updated on September 18, 2022

Comments

  • marekp
    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:

    enter image description here

    • DavidPostill
      DavidPostill over 8 years
      Powershell Get-WmiObject –Class Win32_Bus
    • DavidPostill
      DavidPostill over 8 years
    • Smock
      Smock over 4 years
      @DavidPostill if you're linking to SIV, then thank you, it's great!
  • marekp
    marekp over 8 years
    saw the answers suggesting 3rd party solutions before, trying to figure out if it's doable without. thanks anyway :)
  • Jamal
    Jamal over 8 years
    Just wait until you reach 50 rep to comment. Don't post comments as answers to get around that.
  • ART
    ART over 8 years
    @Jamal : okay will wait.
  • marekp
    marekp over 8 years
    added link to gist
  • G-Man Says 'Reinstate Monica'
    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
    Ravindra Bawane over 3 years
    Everyone else already answered for Windows because the question was about a Windows computer to begin with.