I am trying to get the WWN for my HBA card on several Windows 2012 R2 boxes. Does anyone have a script or a hint for me to write one that can retrieve the WWN? Thanks!
Like most Windows devices, the name is likely stored some place in the Windows registry so that would be the place to start.
You may also be able to use the "MSFC_FCAdapterHBAAttributes" WMI class via WinBatch COM Automation. There are many WMI example in the Tech Support database that should help you get started.
Here is a link to a VB script example that should easily adapt to a WinBatch script:
http://wutils.com/wmi/root/wmi/msfc_fcadapterhbaattributes/vbscript-samples.html
Thank you all for your help! You guys have always given me solutions :)