Rename a network card in Command Line

2010/12/23 | less than 1 minute read |

Last week I was working on HP RDP (Rapid Deployment Pack) where I want to automate the deployment of new server.

One of the task I wanted to do was: Renaming a Network Interface. As you probably know it, by default: “Local Area Connection” or “Local Area Connection 2”. But I wanted to put some custom name, such as “VLAN10”. I was able to resolve this problem with netsh.

Here is the useful command:

netsh interface set interface name="Local Area Connection" newname="ExampleLan"

Leave a comment