Hi kunaludapi
Sorry for delay i tested the below script host name and ip adress are not showing properly.Check the below out put
can you please correct it...and also can i generate over datacenter by adding get-datacenter |get-cluster |get-vmhost
Message was edited by: vin01