# List of network interfaces on hyper-v host (need name for next command):
# Create new virtual switch:
New-VMSwitch -AllowManagementOS $False -Name "VirtualSwitchName" -NetAdapterName "Name of network interface"
# Creating network interface that will be acting as management:
Add-VMNetworkAdapter -ManagementOS -Name "InterfaceName" -SwitchName "VirtualSwitchName"
# Setting management vlan on newly created interface:
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "InterfaceName" -Access -VlanId <VLAN NUMBER>