Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

issue with HTML output

$
0
0

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!!!


Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>