def interfaces_names():
 ret = []
 with salt.utils.winapi.Com():
  c = wmi.WMI()
  for iface in c.Win32_NetworkAdapter(NetEnabled=True):
   ret.append(iface.NetConnectionID)
 return ret

def interfaces_names ( ) : ret = [ ] with salt . utils . winapi . Com ( ) : c = wmi . WMI ( ) for iface in c . Win32_NetworkAdapter ( NetEnabled = True ) : ret . append ( iface . NetConnectionID ) return ret
return a list of all the interfaces names cli example: .