Copy ResourcePools from 1 Cluster to another …

Categories: PowerShell, Scripts, Virtualisation, VMware, vSphere

This is a small scriptlet to copy the ResourcePools (just the ResourcePools no settings or VM’s) of Cluster1 to Cluster2

Connect-VIServer -server VCENTER-IP -User USERNAME -Password PASSWORD

$respools = Get-ResourcePool -Location CLUSTER1

foreach ( $respool in $respools ) {
	Write-Host $respool
	New-ResourcePool -Location CLUSTER2 -Name $respool -Confirm:$false
}

Disconnect-VIServer -Confirm:$false -Force:$true -Server VCENTER-IP

    Leave a Reply

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

    This site uses Akismet to reduce spam. Learn how your comment data is processed.