function New-VMChangeReport { param( [switch]$asHtml = $false, $OutputFile = "report.html" ) Begin { } Process { if ( $_ -isnot [VMware.VimAutomation.Client20.VirtualMachineImpl] ) { Write-Warning "Expected virtual machine object on pipeline, skipping $_" continue } Write-Progress "Retrieving Information" "Events..." $VmConf = Get-VIEvent -Entity $_ -Types "Info" | Where-Object { $_ -is [VimApi.VmReconfiguredEvent] } foreach ( $event in $VmConf ) { } } End { } }