How can i find the connection type of switch using WMI?


to explain better, hyper-v manger -> virtual network manager

on left panel, can see virtual networks created on server. , when click on it. on right side panel, can see connection type - "external, internal or private". if external, list physical network card too.

my question is, how find whether switch handles external or internal using wmi?

there no “type” when comes virtual switches in our wmi model.  that’s concept in our ui built on top of wmi layer.

 

the ui looks msvm_internalethernetport , msvm_externalethernetport objects connected switch. 

 

if internal connected, ui declares “internal”.

if external connected, ui declares “external”.

if neither connected, ui declares “private”.

 

there nothing within wmi layer understands or enforces concept.


this posting provided "as is" no warranties, , confers no rights.



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...