Copy ResourcePools from 1 Cluster to another …

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