Hello Marc,
Thanks for this script. I am new to both vmware and scripting. Getting the below error for CPU, memory and all stats gathering. Can you please help?
Cannot convert value "<td>" to type "System.Int32". Error: "Input string was
not in a correct format."
At C:\Users\kkannan1_l4\Desktop\check1.ps1:492 char:3
+ + "<td>" + (GetDatastoreAllocationPercentage $_) + "% </tr>"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvalidCastFromStringToInteger
Almost at all data collection lines. Moreover, can you tell me how long the script takes complete the entire procedure?