PowerCLI script to get Resource Pool Path

Hi

I was wondering if someone could help me, I am looking for a PowerShell script that would give me the specific path of a specific Resource Pool, but I need to base the filter on the path and not the name of the resource pool.

The reason for this is that our guys created a "Infrastructure Services" resource pool in 4 different places so when I query the resource pool I get 4 results but in 4 different paths.

Now what I would like to do is when I create the VM from PowerShell I would need to place the VM into one of the 4 resource pools but specifying a specific path.

Is this possible and could someone please give me an example code for this.

I hope this makes sense :)

Thanks in advance

February 24th, 2014 8:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics