NIC Teaming override for Windows Server 2022

Created by Andrew Royal Keith, Modified on Wed, 27 Aug at 11:32 AM by Andrew Royal Keith

Create your Team with the relevant ports

Instead of creating a Virtual Switch inside Hyper-V, you need to use the Lord's favourite tool - PowerShell.

Use the below PowerShell command to create the switch.

New-VMSwitch -Name "LAN" -NetAdapterName "LINK-AGGREGATION" -AllowNetLbfoTeams $true -AllowManagementOS $true

e.g. New-VMSwitch -Name "Team" -NetAdapterName "Team" -AllowNetLbfoTeams $true -AllowManagementOS $true

Name is what you want the switch to be called, NetAdapterName is the name of your NIC Team, in my case it was 'TEAM'. The AllowNetLbfoTeams variable set to true is what overrides the block that Server 2022 has put in place.

When running the command, mine had shown progress in the CLI as a progress bar, and then errored out along the lines of ‘could not find the file specified’. I had waited about a minute looking for an explanation online, happened to try it again without changing anything and it had gone through successfully.

You can now create/import your VMs using your newly made virtual switch.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article