Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to launch an executable in my virtual machine(Windows Server 2003 OS and is installed using VMWARE Workstation) from my base machine

I tried the following command

"C:\Program Files\VMware\VMware VIX\vmrun" -T server -h https://machine-name.domain-name:8333/sdk -u username -p password -gu guestusername -gp guestpassword runProgramInGuest "[standard] vmname/vmname.vmx" -activeWindow "C:\windows\system32\notepad.exe"

On doing this notepad doesn't shows up but on opening taskmanager it shows notepad.exe running under my account

share|improve this question
up vote 1 down vote accepted

It worked by adding the keyword -interactive .....

Without it the GUI won't come..

Hence the command which works fine is

"C:\Program Files\VMware\VMware VIX\vmrun" -T server -h https://machine-name.domain-name:8333/sdk -u username -p password -gu guestusername -gp guestpassword runProgramInGuest "[standard] vmname/vmname.vmx" -activeWindow -interactive "C:\windows\system32\notepad.exe"

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .