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

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.

Get-VIEvent -maxsamples 20000 -Start (Get-Date).AddDays(-1) |

where  {$_.Gettype().Name -eq  "VmBeingDeployedEvent|VmCreatedEvent|VmRegisteredEvent|VmClonedEvent"} | 

select Username, CreatedTime, FullFormattedMessage,@{N="VM";E={$_.VM.Name}}


Viewing all articles
Browse latest Browse all 228631

Trending Articles