How to get Local Area Connection Name with batch script in windows 7
batch-file, windows
Solution
Not completely sure what you are asking, but I assume your question is you want to get all the friendly names of the network interfaces.
Something like this:
wmic nic where "netconnectionid like '%'" get netconnectionid
which returns (on my laptop)
NetConnectionID
Local Area Connection
Wireless Network Connection
Bluetooth Network Connection
VirtualBox Host-Only Network
Problem
I am writing a simple batch script to retrieve all the network interfaces on Windows. But I only need the Local Area Connection name. Local Area Connection interface name is not default. Is there any way to retrieve only Local Area connection name as string with a batch script?