I am looking for a way to know when is the last time Hyper-V VM powered off.
What I would like to do is, check for the storace space used by Hyper-V VMs that has not been powered on for a long time.
I checked for other questions and found that with wmi, Win32_OperatingSystem.LastBootUpTime property I can recognize the last boot time for powered on windows os, but it is not possible to connect to powerred off VMs so this is not good. I also checked for Hyper-V wmi properties, but could not find a way to do that.
If you have any good idea, please help me!!