New Question

Revision history [back]

click to hide/show revision 1
initial version

How to configure VLAN for a HyperV Switch through powershell command

I want to configure VLAN for management OS for an external HyperV switch. From Virtual switch manager, its straight forward, by checking enable VLAN for mangement OS in HyperV switch properties.

How can I set VLAN in the same way through powershell command ?

Command I used to create HyperV Virtual switch: New-VMSwitch -Name external_switch -NetAdapterName Ethernet -AllowManagementOS $false