Page 1 of 1

guestcontrol: session won't end

Posted: 5. Sep 2018, 13:15
by BillsComputerStore
I'm using 5.2.18 on Debian as host.
With latest guest additions installed on a Win7 VM.

When I issue the following command, the terminal session won't end and I have to ^C to force it:

Code: Select all

VBoxManage guestcontrol win7sp1 run --exe "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" --username admin --password mypassword -- powershell.exe 'Write-Host "Hello World"'
On the VM, powershell.exe is still active after the command has been executed. I tried to add ;exit but that wont work either.

Suggestions? powershell bug? VB bug?

Re: guestcontrol: session won't end

Posted: 15. Sep 2018, 21:49
by socratis
BillsComputerStore wrote:Suggestions? powershell bug? VB bug?
It's a VirtualBox bug: https://www.virtualbox.org/ticket/14499