VM Creation Historical Report

I needed something that I could look back upon to determine who created what VM in vCenter and from what template. This works when dealing w/ just vCenter and not vCloud Director. It's painfully slow, but it works as a stopgap until I figure out how to query the same information from SQL instead. Here is an screenshot example of what the PowerCLI script outputs: Although, I can probably gather a longer historical view through CSV's than vCenter's SQL if those events/tasks are cleaned up after a period of time. It's meant to be run on a daily basis. Script found after the break: