Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Using PowerCLI to collect CreatedOn Dates

$
0
0

I am trying to update an inventory database and one thing that I cannot seem to get is the creation date of a VM and who created the VM. I have a PowerCLI script to obtain other information; Name, host, IP, cpu count, RAM count, etc.

 

Now, I wouldn't have a problem running this command: Get-VIEvent -maxsamples 10000 -Start (Get-Date).AddDays(-5) | where {$_.Gettype().Name -eq "VmCreatedEvent" -or $_.Gettype().Name -eq "VmBeingClonedEvent"}  Except, the database is out of date by 6 months and I would run out of memory on any machine running the command with -maxsamples [int]::MaxValue and .AddDays(-180). Is there a way I could query the VC DB to find this information and export the information to a CSV?

 

Any help would be greatly appreciated. Thanks!


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>