This question is probably answered numerous times but I have a hard time figuring the answer, so here it is.
Often time I need to combine multiple get statements into the output, for exmaple, Get-NetworkAdapter and Get-VMHostSysLogServer. These get statement do not have the vm or host on the output. How can aggregiate the vm name and host name in the output? For instance:
Get-VMHostSysLogServer would generate -
Host
----
10.10.10.1
How can I append the ESX host column in the output?
Esx Host
--- ----
ESX1 10.10.10.1