Untitled
Anonymous
plain_text
12/13/2021 5:20 PM
436 B
21
Indexable
get-vmswitch | where name -ne "Default Switch" | Remove-VMSwitch -force
foreach ($vm in $(get-vm)) {if (!($VM | Get-VMNetworkAdapter | ? Switchname -EQ "Default Switch")) {$VM | Add-VMNetworkAdapter -SwitchName "Default Switch"}}
get-vm | Get-VMNetworkAdapter | ? switchname -ne "Default Switch" | Remove-VMNetworkAdapterEditor is loading...