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

Re: Get-VIEvent to find vm name?

$
0
0

If you only need the VM name, that property is present in the Event object that is returned by Get-VIEvent.

 

$eventTypes="VmBeingDeployedEvent","VmCreatedEvent","VmRegisteredEvent","VmClonedEvent"
Get-VIEvent
-maxsamples20000-Start (Get-Date).AddDays(-1) |
where {$eventTypes-contains$_.Gettype().Name} |selectUsername,CreatedTime,FullFormattedMessage,@{N="VM";E={$_.VM.Name}}

Viewing all articles
Browse latest Browse all 232869

Trending Articles



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