If machines are running, deinstallation will fail with:
15:56:42 ERR] Command: Remove-VMSwitch, Error: Failed while removing virtual Ethernet switch.
The virtual switch 'eryph_overlay' cannot be deleted because it is being used by running virtual machines or assigned to child pools., Exception: Microsoft.HyperV.PowerShell.VirtualizationException: Failed while removing virtual Ethernet switch.
The virtual switch 'eryph_overlay' cannot be deleted because it is being used by running virtual machines or assigned to child pools.
---> Microsoft.Virtualization.Client.Management.VirtualizationOperationFailedException: Failed while removing virtual Ethernet switch.
at Microsoft.Virtualization.Client.Management.View.EndMethodReturnInternal(IVMTask task, VirtualizationOperation operation, Boolean affectedElementExpected)
at Microsoft.Virtualization.Client.Management.View.EndMethod(IVMTask task, VirtualizationOperation operation)
at Microsoft.Virtualization.Client.Management.VirtualSwitchManagementServiceView.EndDeleteVirtualSwitch(IVMTask task)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.<>c__DisplayClass4_0`1.<ConvertActionToFunction>b__0(T x)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.PerformOperationWithReturn[T](IOperationWatcher watcher, Func`1 startTaskMethod, Func`2 endTaskMethod, String taskDescription, VirtualizationObject targetObject)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.PerformOperation(IOperationWatcher watcher, Func`1 startTaskMethod, Action`1 endTaskMethod, String taskDescription, VirtualizationObject targetObject)
at Microsoft.HyperV.PowerShell.VMSwitch.Microsoft.HyperV.PowerShell.IRemovable.Remove(IOperationWatcher operationWatcher)
at Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch.ProcessOneOperand(Object operand, IOperationWatcher operationWatcher)
at Microsoft.HyperV.PowerShell.Commands.VirtualizationCmdlet`1.ProcessOperands(IList`1 operands, IOperationWatcher operationWatcher)
--- End of inner exception stack trace ---
Microsoft.HyperV.PowerShell.VirtualizationException: Failed while removing virtual Ethernet switch.
The virtual switch 'eryph_overlay' cannot be deleted because it is being used by running virtual machines or assigned to child pools.
---> Microsoft.Virtualization.Client.Management.VirtualizationOperationFailedException: Failed while removing virtual Ethernet switch.
at Microsoft.Virtualization.Client.Management.View.EndMethodReturnInternal(IVMTask task, VirtualizationOperation operation, Boolean affectedElementExpected)
at Microsoft.Virtualization.Client.Management.View.EndMethod(IVMTask task, VirtualizationOperation operation)
at Microsoft.Virtualization.Client.Management.VirtualSwitchManagementServiceView.EndDeleteVirtualSwitch(IVMTask task)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.<>c__DisplayClass4_0`1.<ConvertActionToFunction>b__0(T x)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.PerformOperationWithReturn[T](IOperationWatcher watcher, Func`1 startTaskMethod, Func`2 endTaskMethod, String taskDescription, VirtualizationObject targetObject)
at Microsoft.HyperV.PowerShell.ExtensionMethods.OperationWatcherExtensions.PerformOperation(IOperationWatcher watcher, Func`1 startTaskMethod, Action`1 endTaskMethod, String taskDescription, VirtualizationObject targetObject)
at Microsoft.HyperV.PowerShell.VMSwitch.Microsoft.HyperV.PowerShell.IRemovable.Remove(IOperationWatcher operationWatcher)
at Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitch.ProcessOneOperand(Object operand, IOperationWatcher operationWatcher)
at Microsoft.HyperV.PowerShell.Commands.VirtualizationCmdlet`1.ProcessOperands(IList`1 operands, IOperationWatcher operationWatcher)
--- End of inner exception stack trace ---
[15:56:42 WRN] VM Switch cleanup failed with error ' Command: Remove-VMSwitch, Error: Failed while removing virtual Ethernet switch.
If machines are running, deinstallation will fail with:
AB#707