Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Can't remove failed virtual switch from Hyper-V's Virtual Switch Manager

$
0
0

Hello,

We have a virtual switch setup in the Virtual Switch Manager and the adapter has been deleted by mistake using the "Change Adapter Settings..." of the Network And Sharing Center. Now, obiviously the switch is in a failed state and we just want to remove it from the list.

The Hyper-V console and the PowerShell command ("remove-vmswitch -Name "VSITCH01" - force") both returnsthe error below when removing the switch, because obivously, it can't find the adapter. How do I force remove the switch from the list?

remove-vmswitch : Failed while removing virtual Ethernet switch.
Failed to connect Ethernet switch port (switch name = '49ACD343-5D84-40F8-9B87-70F34F820AF1', port name =
'16D596BE-F31A-43F4-8DD7-7A54FB9818C3', adapter GUID = '{045B0D69-2904-4C11-88C2-22EB4D67DC05}'): The system cannot
find the file specified. (0x80070002).
Ethernet port '{045B0D69-2904-4C11-88C2-22EB4D67DC05}' unbind failed: One or more arguments are invalid (0x80070057).
A parameter that is not valid was passed to the operation.
At line:1 char:1
+ remove-vmswitch -Name "VSWITCH01" -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Remove-VMSwitch], Virtuali
   zationOperationFailedException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitchCommand

Thank you!


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>