Another day playing with vOrchestrator, looking for ways to move my utility powershell scripts into vOrchestrator workflows.
First thing, create a new workflow.
Second, create a scriptable task, and also create an action object using vim3WaitTaskEnd.
Connect everything together, and lets set up our scriptable task

Create an input as VC:Cluster, click on visual bindings. Drag this input over to the parameter side.

Create an output as VC:Task

Click the scripting tab on your scriptable task, drop the following code in there. (Thanks Burke!)
var vms = new Array();
getVMsOfPool(cluster.resourcePool);
function getVMsOfPool(pool) {
vms = vms.concat(pool.vm);
var pools = pool.resourcePool;
if (pools != null) {
for (index in pools) {
if (pools[index] != null)
getVMsOfPool(pools[index]);
}
}
}
System.log(vms);
for (i=0; i
try{
var spec = new VcVirtualMachineConfigSpec();
spec.cpuAllocation = new VcResourceAllocationInfo();
spec.memoryAllocation = new VcResourceAllocationInfo();
spec.memoryAllocation.limit = -1;
}
catch(ex){
throw "Unable to create VcVirtualMachineConfigSpec: "+ex;
}
// Try to reconfig the vm now:
if(spec instanceof VcVirtualMachineConfigSpec){
task = vms[i].reconfigVM_Task(spec);
//System.log("Spec: "+spec);
}
}

validate, created your end point, poof!