Author Posts

April 11, 2016 at 8:26 pm

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!!

April 11, 2016 at 9:54 pm

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

April 12, 2016 at 3:55 am

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*"}

April 12, 2016 at 8:26 am

That worked, thanks Jeremy!