Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.