World Wide Name (WWN)

Started by kle2, August 14, 2017, 05:59:52 AM

Previous topic - Next topic

kle2

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!

td

Like most Windows devices, the name is likely stored some place in the Windows registry so that would be the place to start.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

td

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
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

kle2

Thank you all for your help!  You guys have always given me solutions :)