Powershell command return error RRS feed

  • Question

  • Hello, 

    I'm trying to query a number of Fibre Channel and SAS adapters and specifically I need to find our the UniqueID. If I run it against the Fibre Channel HBAs I can get it without problem 

    Get-WmiObject -Class MSFC_FCAdapterHBAAttributes -Namespace $Namespace @PSBoundParameters

    Active           : True
    DriverName       : elxfc
    DriverVersion    :
    FirmwareVersion  :
    HardwareVersion  : 0000000C
    HBAStatus        : 0
    InstanceName     : PCI\VEN_10DF&DEV_E300&SUBSYS_02131590&REV_01\4&2249f492&0&0018_0
    Manufacturer     : Emulex Corporation
    MfgDomain        : com.emulex
    Model            : SN1200E1P
    ModelDescription : HPE SN1200E1P 16Gb 1p FC HBA
    NodeSymbolicName : Emulex SN1200E1P FV11.1.183.38 DV11.2.139.0 HN:FABIO-DL580-GEN OS:Windows 2012 R2
    NodeWWN          : {32, 0, 148, 24...}
    NumberOfPorts    : 1
    OptionROMVersion :
    SerialNumber     : 5CF65101CK
    UniqueAdapterId  : 1754693573339775008
    VendorSpecificID : 3808432351
    PSComputerName   : FABIO-DL580-GEN

    Anyway the command only returns the UniqueAdapter ID of the Fibre Channel adapter.s I also need the one for the SAS adapters installed in the server. 

    I believe the command below should work 

    Get-WmiObject -Class MS_SM_AdapterInformationQuery -Namespace $Namespace @PSBoundParameters 

    however I get an error

    Get-WmiObject : Not supported 
    At line:2 char:1
    + Get-WmiObject -Class MS_SM_AdapterInformationQuery -Namespace $Namespace @PSBoun ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
        + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

    How can I get the UniqueAdapterID for my SAS controller ?



    • Edited by Fcallegher Sunday, January 14, 2018 1:03 AM
    Sunday, January 14, 2018 1:01 AM

All replies

  • Contact SAS vendor to find out how to add WMI support for their adapter.  Many older adapters do not support the new WEBM classes.

    Try this to see if any adapters have instances

    Get-WmiObject -Class MS_SM_AdapterInformationQuery -Namespace root\WMI

    "Not supported" usually means the vendor does has not registered for WMI.


    Sunday, January 14, 2018 1:20 AM
  • Thanks a lot for the quick reply


    Sunday, January 14, 2018 2:29 PM
  • Hi,

    I'm checking how the issue is going, was your issue resolved?

    And if the replies as above are helpful, we would appreciate you to mark them as answers, and if you resolve it using your own solution, please share your experience and solution here. It will be greatly helpful to others who have the same question.

    Appreciate for your feedback.

    Best Regards,

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, January 15, 2018 1:13 AM