VMware Cloud Community
AEsansun2
Enthusiast
Enthusiast

Run Program in Guest

I am using the workflow called "Rung program in guest".

If i specify this command C:\windows\System32\Net.exe    time

it works fine.

If i specifcy this  C:\Windows\System32\slmgr.vbs /ato

it failes

[2014-09-16 16:52:53.304] [I] A general system error occurred: A program could not run on the guest operating system (Workflow:Run program in guest / Scriptable task (item1)#15)

let me know .

thank you

7 Replies
stvkpln
Virtuoso
Virtuoso

You may want to take a look at this: Guest script manager package. It may seem like overkill, but it's a much more robust approach than using the straight Guest Operations API calls.

-Steve
iiliev
VMware Employee
VMware Employee

Try the following:

On second page of the workflow dialog, in 'Program path' edit box, enter c:\windows\system32\cmd.exe

On third page, in 'Arguments' edit box, enter  /c C:\Windows\System32\slmgr.vbs /ato

Reply
0 Kudos
AEsansun2
Enthusiast
Enthusiast

Yes, that is what i am using.

Reply
0 Kudos
AEsansun2
Enthusiast
Enthusiast

now nothing is working .. i get this..

[2014-09-18 10:43:12.587] [I] A general system error occurred: A program could not run on the guest operating system (Dynamic Script Module name : startProgramInGuest#58) (Dynamic Script Module name : startProgramInGuest#60)

has anybody got it to work ?

Reply
0 Kudos
AEsansun2
Enthusiast
Enthusiast

tried your recommendation and i get ..

[2014-09-18 11:04:28.595] [I] A general system error occurred: A program could not run on the guest operating system (Dynamic Script Module name : startProgramInGuest#58) (Dynamic Script Module name : startProgramInGuest#60)

[2014-09-18 11:14:43.471] [D] *******************************************

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee

Just tried it in my environment (using arguments as in reply #2) and it worked.

If you login on the remote Windows machine, are there any signs/notifications that something has attempted to run? What's the privileges of the user you are trying with? Is it possible that the user has not enough privileges and UAC/firewall is blocking his access?

Reply
0 Kudos
AEsansun2
Enthusiast
Enthusiast

ok, i see what happening.. it's displaying a prompt on the windows box .. to display confirmation message ..

need to get rid of that.

Thank you

Reply
0 Kudos