VM Inventory as e-mail with hyperlinks to vCenter Web UI and VM console

This post is to publish the enhanced version of the script PowerCLI sccript for exporting VM details to HTML. This version has the following features added.

1. Report will be sent as e-mail in HTML format.
2. Added Hyperlink to the vCenter Web Client to login.
3. Each VM will have the Hyperlink to the corresponding VM Console.

The output that is produced by the script looks like this

get-vmInventory1

Notes:
1. Hyperlinks will work only on vCenters with vSphere version 5.1 or above.

2. The client integration plug-in has to be installed on your desktops to see remote console of the VM. The following VMware Article has the steps for installing plug-in.
http://pubs.vmware.com/vsphere-51/index.jsp?lang=en&single=true&topic=/com.vmware.vsphere.vcenterhost.doc/GUID-A618EF76-638A-49DA-991D-B93C5AC0E2B1.html

-SD