PowerShell - Hyper-V - Give a custom name to a virtual network adapter

1 min read · Updated 1 August 2024

Did this guide help you? You can support me by subscribing to the channel, sharing it, disabling your ad blocker or making a donation. Thank you!

Hello,

Hyper-V by default gives the name Network Adapter to virtual machine network adapters.

This can make it difficult to identify their use, but this problem can be solved with PowerShell, which allows you to change the names of virtual network adapters.

# Display the network adapters of a virtual machine
Get-VMNetworkAdapter -VMName VM-01
# Rename the network adapter named Network Adapter
Rename-VMNetworkAdapter -VMName VM-01 -Name 'Network Adapter' -NewName production

Related links