When I run this:
Set-VMNetworkAdapter -VMName $vmName -Name "Network Adapter" -VMQ
I get this:
Set-VMNetworkAdapter : Missing an argument for parameter 'VmqWeight'. Specify a parameter of type 'System.Nullable`1[System.UInt32]' and
try again.
At line:1 char:62
+ Set-VMNetworkAdapter -VMName $vmName -Name "Network Adapter" -VMQ
+ ~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-VMNetworkAdapter], ParameterBindingException
+ FullyQualifiedErrorId : MissingArgument,Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapter
So I try to add the VmqWeight
:
Set-VMNetworkAdapter -VMName $vmName -Name "Network Adapter" -VMQ -VmqWeight 30
and I get this:
Set-VMNetworkAdapter : Missing an argument for parameter 'VmqWeight'. Specify a parameter of type 'System.Nullable`1[System.UInt32]' and
try again.
At line:1 char:62
+ ... VMNetworkAdapter -VMName $vmName -Name "Network Adapter" -VMQ -VmqWei ...
+ ~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-VMNetworkAdapter], ParameterBindingException
+ FullyQualifiedErrorId : MissingArgument,Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapter
I looked up -VmqWeight
and it is supposed to have a value between -100 and 100.
What is the correct syntax to set these options on my VM?