Hi LucD,
Thanks a lot for your quick reply.
How can I get this exported to html file ?
I tried the below, it is not working
$VMInfo=$null
$VMInfo+="<th><center>VM Name</th><th><center>IP Address</th>"
Get-VM-Namedb1-PipelineVariablevm|
ForEach-Object-Process {
$_.guest.IPAddress |
ForEach-Object-Process {
$VMInfo+="<th><center>$($vm.Name)</th><th><center>$($_)</th>" | ConvertTo-Html >> D:\report.html
}
}