Hi,
how do i remove a wrong created vPortGroup on multiple hosts?
Thx
Chakoe
You can remove a specific virtual portgroup from all hosts with something like:
Get-VMHost | Get-VirtualPortGroup -Name "vPortGroupname" | Remove-VirtualPortGroup
Regards, Robert
Try this
Get-VMHost | Get-VirtualPortGroup -Name "xyz" | Remove-VirtualPortGroup -Confirm:$false
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can remove a specific virtual portgroup from all hosts with something like:
Get-VMHost | Get-VirtualPortGroup -Name "vPortGroupname" | Remove-VirtualPortGroup
Regards, Robert