I've looked through the previous posts in this forum that look like they have anything to do with my question, but they did not seem to address my question.
I'm trying to set things up on a Hyper-V Server 2012 R2 remotely via PowerShell. I am not using SCVMM so I do not have the SCVMM PowerShell cmdlets available. I need to be able to do this with the 'out of the box' cmdlets as this is geared toward a green field deployment.
After installation, I do the minimum amount of work required locally in the Hyper-V Server command and sconfig windows to configure for remote management, then switch to executing a variety of PowerShell scripts from my management workstation. For this particular Hyper-V Server, I am creating a virtual switch that is shared with the host OS - no problem. The only issue is that the network requires a VLAN tag. I can't see anyway to include the tag in the New-VmSwitch cmdlet. Nor have I been able to find any other cmdlet that allows me to set the VLAN tag on the parent's vNIC. I know the Set-VmNetworkAdapterVlan can be used for setting the VLAN tag on a VM's NIC, but it doesn't appear it works on the parent's vNIC.
It seems like with the all the great cmdlets Microsoft is releasing to do everything that is possible in the GUI that this would be someplace. But if it is there, I haven't found it yet.
My workaround is to launch the GUI remotely and set it manually.
Thanks for any pointers.
.:|:.:|:. tim