Quantcast
Channel: Windows Server
Viewing all articles
Browse latest Browse all 26364

PowerCLI outputting to a HTML file. Output growing like a cancer...

$
0
0

I'm writing a PowerCLI (Powershell) script to grab the state of each of our ESX host's VMs and output it to an HTML page so at login that page can be displayed to the ESX admin (me).

I've set it up so that the script goes through a loop, grabbing each ESX host in an array, remote connecting to it, running a get-vm and outputting it to an HTML file. Simple right?

I'll then have the script run as a scheduled task updating/replacing the file every hour. At logon the html file will be part of the start-up for the admin thus opening a browser displaying it when the user logs in. Easy way to see what's up and what's not...

My problem is mainly in formatting the HTML so that it Show's the \Hostr Name/IP Address, then the table containing the VMs, for each Host in the array. I'm getting the output, however after each Host is logged onto the...


Viewing all articles
Browse latest Browse all 26364

Trending Articles



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