Server 2012R2/2016 List WWNs

28th August 2018
by InfiniteMonkeys

    To view the FC WWWNs on a 2012 R2 or above Windows Server via powershell:

    “get-initiatorport”

    InstanceName NodeAddress PortAddress ConnectionType
    ———— ———– ———– ————–
    PCI\VEN_10DF&DEV_FE00&SUBSYS_FE0010DF&REV_02\4&370d11c1&0&0038_0 20000000c965485c 10000000c965485c Fibre Channel
    PCI\VEN_10DF&DEV_FE00&SUBSYS_FE0010DF&REV_02\4&370d11c1&0&0138_0 20000000c965485b 10000000c965485b Fibre Channel
    PCI\VEN_10DF&DEV_FE00&SUBSYS_FE0010DF&REV_02\4&2ded1b5a&0&0040_0 20000000c976ba3a 10000000c976ba3a Fibre Channel
    PCI\VEN_10DF&DEV_FE00&SUBSYS_FE0010DF&REV_02\4&2ded1b5a&0&0140_0 20000000c976ba3b 10000000c976ba3b Fibre Channel

    And pipe to a file with “c:\WWNs.txt”