Execute process on Guest(Windows 2000) from Host(Windows 7)

Discussions about using Windows guests in VirtualBox.
Post Reply
sans_india85
Posts: 1
Joined: 8. Apr 2011, 07:30
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows 2000

Execute process on Guest(Windows 2000) from Host(Windows 7)

Post by sans_india85 »

I need to launch a process which is present in Guest OS(Windows 2000 - Virtual Box) from Host OS(Windows 7) by sending a command. Is it possible to do it in VirtualBox V4.0.4? If so then can you please tell me the steps to be followed.

For example : I need to launch a process called "notepad.exe" which is present in Guest OS (Windows 2000 - Virtual Box) by sending a command from Host OS(Windows 7).
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Execute process on Guest(Windows 2000) from Host(Windows 7)

Post by BillG »

What good would that do you? notepad.exe is an editor and executing that would open a window in the guest OS. You would not see anything from the host.

Why not connect to the guest by RDP?
Bill
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Execute process on Guest(Windows 2000) from Host(Windows 7)

Post by Perryg »

Assuming that the notepad.exe was for example purpose you can execute some commands on the guest from the host.
You need to read Chapter 8.29 VBoxManage guestcontrol in your VirtualBox users manual.
You must follow the syntax exactly as written for it to work.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Execute process on Guest(Windows 2000) from Host(Windows 7)

Post by Technologov »

Read User Manual, "8.29. VBoxManage guestcontrol":

> VBoxManage --nologo guestcontrol execute "My VM" "c:\windows\system32\notepad.exe"
--username foo --password bar --wait-for stdout
Post Reply