7 Replies Latest reply on Jan 12, 2018 12:21 PM by LucD

    Using get-view for a clustercomputeresource, what's the fastest way to get the datacenter it's in?

    lanwench Novice

      Hi all -

       

      If I use get-view to pull up a vmhost object, I can easily find the cluster it's in by checking the parent.

      If I use get-view to pull up a vmhost cluster object, the parent is a folder, not a datacenter.

       

      What's the quickest way to grab the datacenter name for a cluster object? I've been beating my head into a wall and must be missing something....

       

      Thanks!

      Paula

       

      (PowerCLI v6.5)

       

      typo!