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.