RajuVCP
Hot Shot
Hot Shot

Script to get who created VM Clone copy

Hi All,

i found various script on creating VM Clone.

But is anyone have script which can give details like who created VM Clone, date, time, user id, Clone Disk size.

Thanks in Advance.

Raju Gunnal VCP 4, VCP 5, VTSP 4, VTSP 5, ITIL V3 http://www.techtosolution.com
0 Kudos
1 Reply
LucD
Leadership
Leadership

You can find cloning events like this

Get-VIevent -Start (Get-Date).AddDays(-7) -MaxSamples ([int]::MaxValue) |

where{$_ -is [VMware.Vim.VMClonedEvent]} |

Select CreatedTime,UserName,

   @{N='VM';E={$_.VM.Name}},

   @{N='Source';E={$_.SourceVM.Name}}

 

No too sure what you mean by "clone disk size".

If the clone still exists, you can find the disksize of that VM.

If the clone doesn't exist anymore, that info is gone.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos