Hi,
I am having issues in getting the output in html format
Get-VM-Namedb1-PipelineVariablevm|
ForEach-Object-Process {
$_.guest.IPAddress |
Select @{N='VM Name';E={$vm.Name}},
@{N="IP Address";E={$_}}
}
From the above output, I would like to declare variable for name and ip address and would like to get the output
When I use the below method, I am getting blank
$VMInfo = $null
$VMInfo += "<th><center>VM Name</th><th><center>IP Address</th>"
Get-VM-Namedb1-PipelineVariablevm|
ForEach-Object-Process {
$_.guest.IPAddress |
Select $name = @{N='VM Name';E={$vm.Name}},
$IP = @{N="IP Address";E={$_}}
}
$VMInfo += "<th><center>$Name</th><th><center>$IP</th>"
I have already have a HTML report, I would like to get this added along.
Please help!!!