2. VMware vCloud Director Server Resource Kit : 2.1 vCloud Director Audit : 2.1.2 Setup, Configuration, and Use
   
2.1.2 Setup, Configuration, and Use
To set up, configure, and use vCloud Director Audit
1. Download vCloud Director Audit from http://www.virtu-al.net/2012/03/13/vcdaudit-for-vcloud-director/.
2. Unzip to a folder. There is no installation process.
3. Edit the 00 Connection Plugin for VCD.ps1 file to set the appropriate credentials for your vCloud environment (see line 19).
 
4. From PowerCLI, execute the following command:
.\VCDAudit.ps1
5. If it is your first time running the application, you are prompted to configure vCloud Director Audit. If you want to reconfigure after the initial setup, add the –configure flag to the command-line argument.
 
6. Configure the script with your vCloud Director environment settings. You are prompted for the following
*IP Address or Hostname of the vCloud Director environment.
*SMTP server address.
*Email address to which to send reports.
*Subject line for report emails.
*Whether to display reports after completion (true/false).
*Whether to send an email after the report is completed (true/false).
*Whether to include the report attachment as an HTML file (true/false).
*Report title color (HTML RGB).
*Report heading color (HTML RGB).
*Report title text color (HTML RGB).
*Whether to include plug-in runtimes in report (true/false).
*Whether any plug-ins take longer than n seconds (integer, seconds).
7. From PowerCLI, run vCloud Director Audit:
.\VCDAudit.ps1
This collects information from vCloud Director and generates an HTML report similar to the following sample report: