guestcontrol: session won't end

Discussions related to using VirtualBox on Linux hosts.
Post Reply
BillsComputerStore
Posts: 6
Joined: 5. Sep 2018, 13:08

guestcontrol: session won't end

Post 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?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: guestcontrol: session won't end

Post by socratis »

BillsComputerStore wrote:Suggestions? powershell bug? VB bug?
It's a VirtualBox bug: https://www.virtualbox.org/ticket/14499
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply