How to rename interface or network adapter name using command line or Powershell?
In Windows network connection window, it shows the list of available network card on the computer, NICs are listed with its name, interface card vendor name (like Intel(R) I350 Gigabit) and its connection name whether it's domain network, local network, private or other network connection name.
Network connections window can be access by typing "ncpa.cpl" from windows run box. Or typing "control cpa.cpl" from command line. Of course it can also be access via GUI from the control panel or task bar.
To rename Interface name using netsh via command line:
Netsh interface set interface name="Local Network" newname="Private LAN Network"
If the server or computer has multiple nics; its better to set the interface name with identifiable name that best describes the interface connection.
Netsh interface set interface name="Local Network" newname="NIC 1 Web Server 1"
To rename via PowerShell using Win32 WMI class:
$NIC_wmi = Get-WmiObject -Class Win32_NetworkAdapter -Filter "NetConnectionID='Local'"
$NIC_wmi.NetConnectionID = 'DMZ Web NIC1'
NetConnectionID string access type is read and write so the value can be changed.
Check out this MSDN link for more info about Win32_NetworkAdapter class.
Cheers..till next time..
Free Android Apps:
Click on links below to find out more:
Catholic Rosary Guide for Android:
Divine Mercy Chaplet Guide (A Powerful prayer):
Educational Android App for Kids: