Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232413

Re: how can i pull the reports of VM builds

$
0
0

Hello,

 

Well, firstly you would want to get the VM deployment/creation events for the last [time period].  Get-VIEvent is handy for that.  And, Virtu-Al put a few examples out in the past about doing so at his ...last 10 VMs created and removed post.  For you, it would be something like:

 

Get-VIEvent-MaxSamples10000-Start (Get-Date).AddDays(-14) | Where-Object {
   
"VmCreatedEvent","VmBeingClonedEvent","VmBeingDeployedEvent"-contains$_
.GetType().Name}

 

Then, from those resultant events, you have the info as to which VMs were created (each of these resulting events has a ".VM" property, which holds both the VM ID and object name).  You can then use said VM ID or name info to get the desired properties for each as you would with any other VM -- via Get-VM or Get-View.  That get you going?


Viewing all articles
Browse latest Browse all 232413

Trending Articles



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