About
Pricing
Community
Teams
Start Free Trial
Log in
jack jones
asked on
3/22/2017
how to get logs of who created VM and when?
I found couple of scripts to query who created VM, but they were not returning the results for the older VM. Can i query independent of time of creation and return the Creator
I got below result
VMname : Vm-test
CreatedTime : NoEvent
CreatedMonth : NoEvent
CreationMethod : NoEvent
Creator : NoEvent
Powershell
* PowerCLI
VMware
11
1
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/22/2017
Are your scripts querying the database or event logs ?
jack jones
3/22/2017
ASKER
Im using this script
https://psvmware.wordpress.com/2012/11/27/when-was-vm-created-how-vm-was-created-and-who-has-created-this-vm/#more-726
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/22/2017
what are you expecting, e.g. how many days old, do you want to go back ?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
jack jones
3/23/2017
ASKER
Im looking for who created that VM no matter how old it is..
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/23/2017
That script should report on tasks and events, on vCenter Server.
jack jones
3/23/2017
ASKER
Exactly thats why im not getting creator for older VM any way to do so...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/23/2017
The Database Retention Policy for tasks and events is 30 days.
but all tasks and events are stored in the vCenter Database.
So you are searching for VMs created before this date ?
jack jones
3/23/2017
ASKER
Yes correct
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/23/2017
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jack jones
3/24/2017
ASKER
how do you query vCenter Server database .. can i directly connect or know about which database and information in it
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
3/24/2017
use the script I uploaded...