Hi Luc,
one question to help my understanding if you don't mind.
in the Out-SQL Function,
$output_Date = $VMinfo.Date
$output_vCenter = $VMinfo.vCenter
$output_Cluster = $VMinfo.Cluster
Can they be removed from the function or, am i totally missing their purpose ?