Update: This script was intended for vSphere 4 and had a bunch of limitations. For a newer version with more functionality check out FixingITpro.com. PowerCLI, and Powershell in general, are two things I don’t do much with. I’ve used it…