I’ve been thinking for a while about this. How can I zero-out all my vm’s with just one schedule. I don’t want to manually add a schedule every single time I roll out a VM, I want a central point for administering this.

Today I noticed the blog on using the VIX API. The VIX API can be used for all sorts of things, including copying files to all your VM’s or installing MSI on your VM’s. (Check the blog article for a complete list of supported operations for the VMRUN command.)

If you can install MSI’s then you can also run a simple vbs script:

vmrun -T virtualcenter01 -h https://virtualcenter01.yellow-bricks.local/sdk -u root -p yell0wbricks -gu user -gp userpw runProgramInGuest "[storage1] Windows/Windows.vmx" c:\windows\system32\sdelfrag.vbs

Unfortunately I wasn’t able to test it myself, but it should work just fine. If anyone is able to test it please let me know.

Thanks Carter!