How to find out when the VM was turned off in VCenter 6.5

i have a few VMs in vCenter 6.5 which are OFF

How can I Get Virtual Machine Last On and Off Time using a simple method.
How can I get who logged in last

Can we find this information from ESXi Host.

Its on Windows  and Linux Environment.
cgeorgeisaacAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Murali SripadaVMware Engineer | vExpert 18/19Commented:
https://blogs.vmware.com/PowerCLI/2009/10/when-was-the-last-time-that-vm-was-powered-on.html

You can use powercli here using the above blog steps however the clause is it depends on your database retention policy as well and how old the task happened
cgeorgeisaacAuthor Commented:
Thanks for your prompt assistance.
Where should I run the  PowerCLI.
Is there a way to find thru the  VM logs or ESXi Logs in a simpler way.
Murali SripadaVMware Engineer | vExpert 18/19Commented:
yes but that is tedious.. Let me give you why it is tedious.. Each VM's maintains logging, the latest log when it is powered on is kept in /vmfs/volumes/DatastoreUUID/VMFOLDER/vmware.log

If you know the VM names, with respective datastores info then you have to check each vmware.log of all 100 VMs

that should give you the info..  

Thanks,
MS

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cgeorgeisaacAuthor Commented:
Thanks will try that.
cgeorgeisaacAuthor Commented:
That worked along with a few additional step. Many thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.