I need to modify the Host (NOT the VM's) VMSwitch VLAN settings via Powershell for automation purposes.
In Server 2012 (NOT R2), this can be done via modifying MSVM_VLANEndPointSettingData
However, it seems in Server 2012 R2, that class is gone. I've manually searched through the MSVM classes, and it seems that the Host VMSWitch VLAN settings are stored in MSVM_EthernetSwitchPortVlanSettingData. Unfortunately, I have no way of tying that class to a specific VMSwitch.
Any know how to do this on Server 2012 R2?