VMware Cloud Community
jrhodes
Contributor
Contributor
Jump to solution

Last VM powerOn

I am trying to pull together a script that will list all my powerd off VMs and then list its last PowerOn.

Anyone have any ideas?

Jim

Reply
0 Kudos
22 Replies
LucD
Leadership
Leadership
Jump to solution

On which cmdlet did you get that error?
Can you show me the complete error message?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

ok Thanks Lucd. even though the vm is shutdown. I cannto find a shutdown event in events or tasks. I think maybe vcenter doesnt keep a history that long

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

You can check and configure with PowerCLI, have a look at Re: Modify Database Retention Policy with PowerCLI


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos