Get VM’s in vCenter Last Powered Off Date via VMware PowerCLI
Updated 25/04/2017 – Added code snippet.
Please refer to my post on how to connect to vCenter via PowerCLI If you have not completed this before, It can be found here
Connect-VIServer -Server HOSTNAME
Create the following script and call it Get-VMLastPowerOnOffDate.ps1