Trying to find a VM that was deleted from vcenter. Probablyt last 2 weeks
is this right?
Get-VIEvent -maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(–14) | where{$_ -is [VMware.Vim.VmRemovedEvent] }
?
Just in case you are going to copy&paste this, make sure that you replace the "–14" with "-14". Seems some kind of autocorrect issue with the minus sign.
André
Yes, that should find the removed VMs over the last 14 days
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Just in case you are going to copy&paste this, make sure that you replace the "–14" with "-14". Seems some kind of autocorrect issue with the minus sign.
André
Thanks