Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to change the network adapter name in batch or powershell script? possibly by specifying a connection number ?

Thanks in advance.

share|improve this question

migrated from Apr 22 '14 at 9:26

This question came from our site for system and network administrators.

1 Answer 1

Easy enough without PowerShell:

netsh interface set interface name="Old Name" newname="New Name"

Easy enough with PowerShell:

Get-NetAdapter -Name "Old Name" | Rename-NetAdapter -NewName "New Name"

Of course, in PS, you can also select your adapter by whatever property you see fit.

Get-NetAdapter -InterfaceIndex 12 | Rename-NetAdapter -NewName "New Name"

Swiped from Technet Blogs, which has a couple of other more complicated ways.

share|improve this answer
While PowerShell is only supported in Windows8+ AFAIK – MichelZ Apr 3 '14 at 17:04
@michelZ Powershell has been installed by default since Windows 7, and can be installed on OS as early as windows XP. – MartinC Apr 3 '14 at 17:27
I'm refering to this article:, saying that it is supported from Windows 8 / 2012 onwards. Just because you can install PowerShell does not mean that all commands work magically, I think – MichelZ Apr 3 '14 at 17:29
@MichelZ That article states that it is introduced in 4.0, which comes by default on server 2012 R2 and 8.1, but can also be installed on windows 7 and server 2008. "Version 4.0 is integrated with Windows 8.1 and with Windows Server 2012 R2. Microsoft has also made PowerShell 4 available for Windows 7 SP1, Windows Server 2008 R2 SP1 and Windows Server 2012" – MartinC Apr 3 '14 at 17:31
I'm speaking just about the Get-NetAdapter cmdlet by the way.. not PowerShell in general :) – MichelZ Apr 3 '14 at 17:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.