VMware {code} Community
youngcool635025
Contributor
Contributor
Jump to solution

RunProgramInGuest program unvisible on windows 2008 r2 64bit os

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

0 Kudos
1 Solution

Accepted Solutions
fixitchris
Hot Shot
Hot Shot
Jump to solution

dblock would be the person that would know about this one.

http://www.microsoft.com/whdc/system/vista/services.mspx

View solution in original post

0 Kudos
5 Replies
youngcool635025
Contributor
Contributor
Jump to solution

Does anyone successful run the program in Guest in windows 2008?

0 Kudos
fixitchris
Hot Shot
Hot Shot
Jump to solution

dblock would be the person that would know about this one.

http://www.microsoft.com/whdc/system/vista/services.mspx

0 Kudos
youngcool635025
Contributor
Contributor
Jump to solution

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.

0 Kudos
admin
Immortal
Immortal
Jump to solution

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!

youngcool635025
Contributor
Contributor
Jump to solution

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

0 Kudos