It might be ugly but it works!
Welcome to the underappreciated art of ugly and janky PowerShell scripts! I know that not every script is a work of art, but that doesn't mean it can't be beautiful in its own way. Sometimes, the most important thing is simply getting the job done, and if you're the kind of person who can appreciate a script that's a little rough around the edges, then you've come to the right place.
Here, I celebrate the ingenuity and creativity that goes into writing PowerShell scripts that might not be pretty, but are undeniably effective. I know that not everyone has the time or resources to write perfectly polished scripts, and we don't believe that should be a barrier to getting things done. So whether you're a PowerShell beginner who's just starting out, or a seasoned veteran who's seen it all, I hope you'll find something here that inspires you.
Adapt and use at your own risk!
If you need a list for audit or management, or just for fun.
This sets the location of the VMware tools files that the hosts use as the latest version. This can be a good way to simplify updating VMWare Tools on VMs to the latest version and not just what was bundled with the install ESXi image.