Hello,
I'm automating several things on VMs located at a 3.5 ESX host and I've found that sometimes executing RunProgramInGuest just after rebooting the guest does not start the application nor returns error. If I call jobHandle.Wait() it just waits forever. The guest is a 2003 R2 Server, not sure if this matters.
Any hint?
PD: The code to execute the application is:
IJob jobHandle = _vmHandle.RunProgramInGuest(exePath,parameters, VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, null, null);
int[] propertyIds = new int[] { VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_GUEST_PROGRAM_EXIT_CODE };
object results = new object();
ulong errorValue = jobHandle.Wait(propertyIds, ref results);