HBA card location(s)

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Mike Eyler Mike Eyler 5 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37539
    Profile photo of Mike Eyler
    Mike Eyler
    Participant

    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
    Profile photo of Richard Diphoorn
    Richard Diphoorn
    Participant

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

    #37553
    Profile photo of Jeremy Murrah
    Jeremy Murrah
    Participant

    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
    Profile photo of Mike Eyler
    Mike Eyler
    Participant

    That worked, thanks Jeremy!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.