Quantcast
Channel: Windows Server 2012 General Forum
Viewing all articles
Browse latest Browse all 2702

Server 2012: Using Powershell to set VM-Switch VLAN?

$
0
0

Hello there. Is there a way to set the VLAN tag on a Microsoft VMSwitch object on the Host Operating System via Powershell? I've searched through some possible commands (Get-Command *VMSwitch* and Get-Command *VLAN*), and I have not had any luck finding the appropriate cmdlet. Right now I am forced to use the Virtual Switch Manager GUI to set a VLAN ID on the VMSwitch.

On a somewhat related note, this can be done for a VMNetworkAdapter object. There is a Get/Set-VMNetworkAdapter cmdlet that will set the VLAN tagging of an individual VMNetworkAdaper inside a Virtual Machine.

Thanks.


Viewing all articles
Browse latest Browse all 2702

Latest Images

Trending Articles



Latest Images