title: Renaming the network interface name via command line
body: <p>I want to rename the network interface name to a default name, for example "Ethernet", via dos.</p>
  
  <p>I know <code>netsh interface set interface name=”Local Area Connection” newname=”Ethernet”</code> is the way to do it.</p>
  
  <p>I am running a script and it will not know the name of the interace, correct? So, I need it to rename it to a default before I set the IP address for the interface.</p>
  
  <p>How can I do this without knowing the name of the interface?</p>
  
  <p>Is there a way to get the name of the interface somehow and then change it?</p>