Hi guys
This problem bugged me for the whole day.
I'm able to use the vetris api to connect to vm and i enabled automatically logon, if I see my screen, the runprograminguest can start fine,
However, if i power off and then power on, I need to wait for the VM windows screen to physically appear for the interactive_environment.
I do not want to silly wait for 60 seconds, but when I use WaitForVMWareUserProcessInGuest(), it just times out as there is no vmwareuser.exe present, i think it is changed to vmtoolsd.exe
virtualMachine.WaitForToolsInGuest();
virtualMachine.WaitForVMWareUserProcessInGuest("username", "password");
virtualMachine.LoginInGuest("username", "password", Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, 30000);
// run notepad
virtualMachine.RunProgramInGuest(@"C:\Program Files\test\test.exe", string.Empty);
is there anyway to resolve this?
greatly appreciated
thanks