Creating nic team and virtual switch using powershell

Seems creating a virtual switch with a nic team is debriciated using GUI on Windows Server 2022. The PowerShell commands given below let you create a nic team and a new virtual switch.

New-NetLbfoTeam -Name Team -TeamMembers "Ethernet 1","Ethernet 2","Ethernet 3","Ethernet 4" -TeamingMode LACP -LoadBalancingAlgorithm Dynamic

Then create a virtual switch for virtual machines.

New-VMSwitch -Name VRTs -NetAdapterName "Team" -AllowNetLbfoTeams $true

Now your server has 4gbit network connectivity and is ready to be assigned to virtual machines if you set your switch ports mode lacp and balancing as dynamic.

The sources used are listed below.

Thanks for your time reading


Published by Hasan Altin

I don't see any difference between the one who doesn't share its knowledge or the one who doesn't share its bread.

Leave a Reply

Your email address will not be published. Required fields are marked *