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'
$NIC_wmi.Put()
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.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394216(v=vs.85).aspx
Cheers..till next time..
==================
Free Android Apps:
Click on links below to find out more:
https://play.google.com/store/apps/details?id=soulrefresh.beautiful.prayer
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
https://play.google.com/store/apps/details?id=com.myrosaryapp
Divine Mercy Chaplet Guide (A Powerful prayer) BFF = Be Filled Faith:
Educational Android App for Kids:
https://play.google.com/store/apps/details?id=com.xmultiplication
https://play.google.com/store/apps/details?id=com.letsmultiply
Comments
Post a Comment