I have been working on Hyper-V Failover Cluster for the past two months, And have also used the Live Migration feature and every other aspect of failover cluster with respect to its features. Now the point of my post is that, Is there any kind of programmatic way ( Either powershell script or C++ API) to determine the failover or failback history of the virtual machine ( In what all nodes the virtual machine has been moved ). Upon my analysis, I have found that these migration related activities would be in the Event Viewer with the EventID and the necessary details.But my concern is to have the same either through powershell or C++ API. Any help is highly appreciated.
Regards,
Dinesh Ramalingam