My first post on here. Hope someone can help. I am trying to launch a program on a guest VM (Windows 10) via command line from my host computer (Windows 11)
For some reason, only calculator works:
Code: Select all
VBoxManage --nologo guestcontrol "Joe Blogs" run --exe cmd.exe /c calc.exe --username "joebl" --password "password"
Code: Select all
VBoxManage --nologo guestcontrol "Joe Blogs" run --exe cmd.exe /c notepad.exe --username "joebl" --password "password"
I have tried using PowerShell too:
This works
But this doesn't work:VBoxManage --nologo guestcontrol "Joe Blogs" run --exe cmd.exe /c "powershell.exe Start-Process 'calc.exe'" --username "joebl" --password "password"
I get the error:VBoxManage --nologo guestcontrol "Joe Blogs" run --exe cmd.exe /c "powershell.exe Start-Process 'taskmgr.exe'" --username "joebl" --password "password"
If anyone has had this issue and have found a solution, please let me knowStart-Process : This command cannot be run due to the error: This operation requires an interactive window station
Kind regards,
Maddis