Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Server 2012 R2: How do I set VLAN data for the Host Virtual Switch (via PowerShell)?

$
0
0

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?


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>