Yes, here is vSphere SDK for Perl solution -
I'm sure there is a PowerCLI equivalent, you may want to post in the PowerCLI community if you're looking for a Windows solution.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
Twitter: @lamw
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Community
If you find this information useful, please award points for "correct" or "helpful".