I will really have to install this soon to give a few examples as to how it all works. Until then, here are some examples from VMware’s VIX Blog team.
Use case: Restarting a service on Windows.
This one’s really easy so I’ll just show it without explanation.
Example 3: Restart a service on Windows.
vmrun -T esx -h https://esx.example.com/sdk -u root -p secretpw -gu user -gp userpw runProgramInGuest "[storage1] Windows/Windows.vmx" c:\windows\system32\net.exe restart dhcp
Note: That example should be all on one line.