Select Page

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

You will need to run the script by typing the below –

.\Get-VMLastPowerOnOffDate.ps1

Run Get VMLastPowerOnOffDate - Get VM's in vCenter Last Powered Off Date via VMware PowerCLI

Example of the results can be found below –

Get VMLastPowerOnOffDate - Get VM's in vCenter Last Powered Off Date via VMware PowerCLI

Pin It on Pinterest

Share This