Extract VM details from VCenter

Sometimes it’s a painful job to extract all the information from vCenter server. From GUI you could export information, but not all the information will be available. I was requested to extrach following information. VM Name Host Name VM IP Address Installed Guest OS Power State of VM Allotted number of CPU Allotted total memory Connected Data store Host Server