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
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
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
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