I meet a proble when using RunProgramInGuest, the program is unvisible on win2008 r2 64 bit os.
The Esx server version is 3.5i, the VIX is 1.6.2. Below is the sample code,
Set job = VM.LoginInGuest(userId, userPassword, VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, Nothing)
+Set job = VM.RunProgramInGuest("cmd.exe", "",
VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, Nothing, Nothing)+
I did use the VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT and VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, but the program still can't be visible to the console, I could find it in task manager like "cmd.exe *32". Any advice, thanks
dblock would be the person that would know about this one.
Does anyone successful run the program in Guest in windows 2008?
dblock would be the person that would know about this one.
Yes, I am sure that this is a session 0 isolation and dblock told me to post a question here, and seems vix can't handle this problem in windows 2008.
ESX 3.5 does not support the INTERACTIVE_SESSION flag. It always falls back to use the default, non-interactive mode.
Currently there are no plans to support this feature in ESX 3.5. If you wish to use it, please upgrade to ESX 4.0. Thank you!
Let me update my test result here:
The program invoke by RunProgramInGuest could work in windows 2008 64 bit. The code is as below.
virtualMachine.LoginInGuest(VMUser, VMPass,VixCOM.Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT,50);
virtualMachine.RunProgramInGuest(Command, CommandArg,VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, 50);
And program invoke by RunProgramInGuest is running under session 0,
use command below in cmd could see the program running in session 0.
sc config UI0Detect start= auto
net start UI0Detect