PowerCLI

 View Only
  • 1.  Show all Golden Images from all pools

    Posted Mar 18, 2021 09:38 AM

    Hello,

    i know, that i can show me the golden image from a pool with the follow script:

    $pool = Get-HVPool -PoolName '<PoolName>'
    $pool.AutomatedDesktopData.VirtualCenterNamesData.ParentVmPath.substring(($pool.AutomatedDesktopData.VirtualCenterNamesData.ParentVmPath.LastIndexOf("/")+1))
    $pool.AutomatedDesktopData.VirtualCenterNamesData.SnapshotPath.substring(($pool.AutomatedDesktopData.VirtualCenterNamesData.SnapshotPath.LastIndexOf("/")+1))
     
    It is possible to show all the golden images + snapshots from all the pools?
     
    Thanks and best regards


  • 2.  RE: Show all Golden Images from all pools

    Posted Mar 18, 2021 09:58 AM

    Can't you just run Get-HVPool without a Name, and then loop over all the returned pools with a Foreach loop?



  • 3.  RE: Show all Golden Images from all pools

    Posted Mar 18, 2021 11:14 AM

    Thx!