In Hyper-V Virtual Switch Manager i had unticked “Allow management operating system to share this network adapter” and also enabled VLAN identification.
After applying this i lost all network connectivity to the host Hyper-V Server.
I had to access it through the console and run PS cmdlet:
Get-VMSwitch
Remove-VMSwitch “Name of Switch”
1 of them was in use so i had to stop running VMs:
Get-VM
then Get-VM | Stop-VM
I also had to plug in USB and run nvspbind script which allowed me to clear the settings of Ethernet and Ethernet 2 adapters.
The scripts and process can be found in the below links.
This has now restored connectivity to the Hyper-V Core Server.
Refs:
https://serverfault.com/questions/223989/how-can-i-delete-virtual-networks-from-command-line
https://blogs.technet.microsoft.com/jhoward/2010/01/25/announcing-nvspbind
https://gallery.technet.microsoft.com/Hyper-V-Network-VSP-Bind-cf937850