Migrating VDS port group vms to vss port groups

$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

Leave a Reply

Your email address will not be published. Required fields are marked *