I am getting an error on a powershell NIC related command that is driving me nuts, what am I doing wrong.
Code:
PS C:\work> Get-NetAdapter | sort InterfaceDescription
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Ethernet 2 Microsoft Hyper-V Network Adapter #2 11 Up 00-15-5D-01-01-05 1 Gbps
Ethernet 3 Microsoft Hyper-V Network Adapter #3 6 Up 00-15-5D-01-01-06 40 Gbps
PS C:\work> Enable-NetAdapterQoS -Name 'Ethernet 3'
Enable-NetAdapterQoS : No MSFT_NetAdapterQosSettingData objects found with property 'Name' equal to 'Ethernet 3'.
Verify the value of the property and retry.
At line:1 char:1
+ Enable-NetAdapterQoS -Name 'Ethernet 3'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Ethernet 3:String) [Enable-NetAdapterQos], CimJobException
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound_Name,Enable-NetAdapterQos