$face = Get-VirtualPortGroup | sort name
$face | where {$_.vlanid -eq “344”}
$vdpg = “dvsportgroup”
Get-VDPortgroup $vdpg | get-vm
$vmnics = Get-VDPortgroup $vdpg | get-vm | Get-NetworkAdapter | where {$_.NetworkName -eq $vdpg}
$vmnics | Set-NetworkAdapter -NetworkName “vssporrtgroup” -WhatIf