locked
PowerCLI script to get Resource Pool Path RRS feed

  • Question

  • 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

    Monday, February 24, 2014 12:56 PM