Get Information about Networking
List WWNs on Windows
PS D:\scripts> get-initiatorportInstanceName NodeAddress PortAddress ConnectionType
------------ ----------- ----------- --------------
PCI\VEN_10DF&DEV_F100&SUBSYS_F10010DF&REV_03\4&26673160&0&001A_0 200000123456a3ac 100000123456a3ac Fibre Channel
PCI\VEN_10DF&DEV_F100&SUBSYS_F10010DF&REV_03\4&26673160&0&011A_0 200000123456a3ad 100000123456a3ad Fibre Channel
ROOT\ISCSIPRT\0000_0 iqn.1991-05.com.microsoft:HOSTNAME ISCSI ANY PORT iSCSI Test IP Connections
PS D:\scripts> Test-NetConnection `
-Computername vcenter-esx.customer.local `
-Port 443 `
-InformationLevel DetailedComputerName : vcenter-esx.customer.local
RemoteAddress : 10.238.237.100
RemotePort : 443
NameResolutionResults : 10.238.237.100
MatchingIPsecRules :
NetworkIsolationContext : Internet
InterfaceAlias : Interface_Name - VLAN 123
SourceAddress : 10.238.237.101
NetRoute (NextHop) : 0.0.0.0
TcpTestSucceeded : TrueTest IP Connections via a specific Interface
You see, that each interface has an individual number in the coloumn "ifIndex". Take the number of the desired and use it in the next command....
Last updated