Share via

Set-VMNetworkAdapter : Failed while modifying virtual Ethernet switch connection settings.

Petr Wight 5 Reputation points
2023-03-06T07:31:11.3266667+00:00

Hello.

I have error to set properties of VMnetwork adapter.

Situation:

Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription


vSwichTEAM - LAN External Teamed-Interface

vSwichTEAM - HB External Teamed-Interface

Get-VMNetworkAdapter -All

Name IsManagementOs VMName SwitchName MacAddress Status IPAddresses


Management True vSwichTEAM - LAN 00155D428504 {Ok}

Cluster True vSwichTEAM - HB 00155D428507 {Ok}

vSwichTEAM - LAN True vSwichTEAM - LAN B8CB29FB1FC7 {Ok}

vSwichTEAM - HB True vSwichTEAM - HB 00620B00BB70 {Ok}

Live_Migration True vSwichTEAM - HB 00155D428506 {Ok}

HeartBeat True vSwichTEAM - HB 00155D428505 {Ok}

then

Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidthWeight 10

Set-VMNetworkAdapter : Failed while modifying virtual Ethernet switch connection settings.

At line:1 char:1

  • Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidth ...

CategoryInfo : NotSpecified: (:) [Set-VMNetworkAdapter], VirtualizationException

FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapter

Any ideas whats wrong?

Thanks.

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | Storage high availability | Clustering and high availability

1 answer

Sort by: Most helpful
  1. Limitless Technology 45,241 Reputation points
    2023-03-07T08:19:49.7533333+00:00

    Hello there,

    You can try to Reset the Network Connection and see if that helps.

    The command will remove all your existing connections, so we recommend you create a system restore point before executing this command.

    -Open PowerShell in admin mode.

    -In the PowerShell console, type in the command below and hit Enter to restart all network adapters and remove MUX objects.

    netcfg -d

    -Exit PowerShell when the command executes.

    -Now, open Virtual Switch Manager in Hyper-V Manager and try to create an external switch and see if the error reoccurs

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.