Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Hyper-V V2 API - changing VLAN of a NIC

$
0
0

Does anyone know how to change the VLAN of a NIC via the V2 API? I appreciate there are now cmdlets for this, I need to modify some v1 scripts, long story. 

Before, i'd get an instance of Msvm_VLANEndpointSettingData from a prexisting port, but the whole flow seems different now. 

I see Msvm_EthernetSwitchPortVlanSettingData is the way to go, but a couple of the methods i've tried don't work 

Thanks.

Viewing all articles
Browse latest Browse all 21975

Trending Articles



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