HBA card location(s)

Welcome Forums General PowerShell Q&A HBA card location(s)

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
2 years, 7 months ago.

  • Author
    Posts
  • #37539

    Participant
    Points: 0
    Rank: Member

    Does anyone know how to capture a PCI or HBA card slot location(s) using powershell?
    The information is easily obtainable through the GUI using device manager or HP Systems Management Homepage. I would like to be able to write a script to capture this info due to the number of servers i need to gather data for.
    Any help is greatly appreciated!!

  • #37541

    Participant
    Points: 26
    Rank: Member

    Typing from the car now, So I can't check 😁. But, look at the CIM Cmdlets.

  • #37553

    Participant
    Points: 21
    Rank: Member

    If you have the HP WBEM providers installed, you should have the root\hpq namespace. Check out this list of classes:

    gwmi -Namespace root\hpq -List | ?{$_.name -like "*hba*"}

  • #37575

    Participant
    Points: 0
    Rank: Member

    That worked, thanks Jeremy!

The topic ‘HBA card location(s)’ is closed to new replies.