PowerShell - Hyper-V - Give a custom name to a virtual network adapter
1 min read · Updated 1 August 2024
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 machineGet-VMNetworkAdapter -VMName VM-01
# Rename the network adapter named Network AdapterRename-VMNetworkAdapter -VMName VM-01 -Name 'Network Adapter' -NewName productionRelated links
- PowerShell
PowerShell - Hyper-V - Adding comments to a virtual machine
To keep track of changes to virtual machines under Hyper-V, it may be useful to use the comments function and add any information you think might be useful
1 min read
- PowerShell
PowerShell - Hyper-V - Managing virtual machine configuration versions
How to update the configuration version of a virtual machine so that it can use the new features available on your new Hyper-V
2 min read
- PowerShell
PowerShell - Create a virtual machine for Windows 11 with Hyper-V
Here's how to create a virtual machine in Hyper-V ready to host a Windows 11
2 min read
- PowerShell
Hyper-V - How to compress a virtual disk with a dynamic size
In this video, I show you how to compress a VHDX with a dynamic size in Hyper-V using the graphical interface or the command line, and also explain why this sometimes doesn't work
2 min read
- PowerShell
PowerShell - Simply send objects to different variables
PowerShell - Tip - Simply send objects to different variables
1 min read
- PowerShell
PowerShell - Testing network connectivity and port accessibility
Testing network connectivity and port accessibility with PowerShell
2 min read