This small post will illustrate how we can easily get all virtual machine information of a specific cluster with this function. I used this function to locate on which node a VM was actually located.

How to get List of Virtual Machines from a hyperv cluster using powershell: 

This is can be pretty helpful because it will allow you to list all the VM’s that are currently present on a specific node.