I would like to duplicate the following Hyper-V steps using the PowerShell commands:
Settings (for a VM) > Add Hardware > choose "Network Adapter"
"Network Adapter" is part of the default Hyper-V configuration
(select newly added adapter) > Network > (select an existing network)
I have tried a number of commands including Add-VMNIC with various parameters and cannot get it to duplicate the manual steps.
For instance, when I execute:
add-vmnic -vm test -virtualswitch "Network Adapter"
it adds a "VMBus Network Adapter" rather than "Network Adapter" and other values are not auto-generated like they are using the Hyper-V click-and-type method.
Any help is appreciated.