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


hello there. there way set vlan tag on microsoft vmswitch object on host operating system via powershell? i've searched through possible commands (get-command *vmswitch* , get-command *vlan*), , have not had luck finding appropriate cmdlet. right forced use virtual switch manager gui set vlan id on vmswitch.

on related note, can done for a vmnetworkadapter object. there get/set-vmnetworkadapter cmdlet set vlan tagging of individual vmnetworkadaper inside virtual machine.

thanks.

hi,

the below thread should want:

ps - script modify vlan settings?         

http://social.technet.microsoft.com/forums/en/itcg/thread/49d784e0-a8db-4271-a39a-1530c1be54c1

in addition, please refer below link:

vlan tagging scvmm powershell commands

http://social.technet.microsoft.com/forums/en-us/virtualmachingmgrhyperv/thread/1e2201b5-7549-4c88-84de-f31d7a93b121

hope helps.

regards,

yan li


yan li

technet community support



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

Azure MFA with Azure AD and RDS

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com