I have a several scripts that are using PowerCLI to pull info from all of our virtual center servers and dumping into an HMTL file. At this time I have one script setup for each virtual center server, howerver I want to modify it so that I have one main script that will loop through each virtual center and create a HTML for each one instead of having to maintain several different scripts. I have tried declaring each VC as a variable, for example:
$vc = "vc1" , "vc2"
however that only generated one HTML file using the last variable. What would be the best way to accomplish this? Thanks for any help.