I have some bat files that I need to execute in the VM after it is provisioned.
These bat files are located in a shared folder.
Option 1: Copy the files into the VM and execute them
Option 2: Execute the files directly from the shared folder
Any samples that I can refer to?
many many options to do this one.
you can use either software component blueprint that you add to the blueprint: http://blogs.vmware.com/management/2016/05/software-components-properties-for-applications-provision...
But a lot of times its a lot cleaner to do it through orchestrator.
Especially when you need to run commands 'secretly' (they don't appear in blueprint) or if you have to do it to pretty much all machines and dont want to slap a software compponent into every machine you build.
If you're using orchestrator best thing is to invoke an orchestrator workflow after the machine is provisioned (usning event broker)
in that workflow that you invoke you can use "Run program in guest"