I have a list of resource pools on one cluster.
I want to create the same list on a second cluster - both managed by the same VCS.
The nearest I can get is the following, but it doesn't work
$tp=get-cluster -name "Cluster 5 - x3950 Test" | Get-ResourcePool
get-cluster -name "Cluster 1 - x3950" | Get-ResourcePool -name "Events" | Get-ResourcePool | ForEach-Object {$n="$_.name"; New-ResourcePool -location $tp -name "$n"}
Can someone help me out?