WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: kle2 on August 14, 2017, 05:59:52 AM

Title: World Wide Name (WWN)
Post by: kle2 on August 14, 2017, 05:59:52 AM
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!
Title: Re: World Wide Name (WWN)
Post by: td on August 14, 2017, 07:55:43 AM
Like most Windows devices, the name is likely stored some place in the Windows registry so that would be the place to start.
Title: Re: World Wide Name (WWN)
Post by: td on August 14, 2017, 11:16:50 AM
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
Title: Re: World Wide Name (WWN)
Post by: kle2 on August 14, 2017, 11:41:37 AM
Thank you all for your help!  You guys have always given me solutions :)