Code: Select all
Virtualbox: 7.0.8 r156879 (Qt5.15.2)
Virtualbox guest additions: 7.0.8
Guest Microsoft Windows: 10.0.17763.107
Host Microsoft Windows: 10.0.22621.1992
Code: Select all
VBoxManage --nologo guestcontrol "windows-10-dark_default_1689593456247_29289" --username vagrant --password vagrant run --exe "C:\Windows\System32\calc.exe"
I can execute non graphical applications as shown below:Guest control. On Windows guests, a process started using the guest control execute support will not be able to display a graphical user interface unless the user account under which it is running is currently logged in and has a desktop session.
Also, to use accounts without or with an empty password, the guest's group policy must be changed. To do so, open the group policy editor on the command line by typing gpedit.msc, open the key Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options and change the value of Accounts: Limit local account use of blank passwords to console logon only to Disabled.
Code: Select all
PS C:\Users\victo> VBoxManage --nologo guestcontrol "windows-10-dark_default_1689593456247_29289" --username vagrant --password vagrant run --exe "c:\Windows\System32\query.exe" -- "c:\Windows\System32\query.exe" "user"
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
vagrant console 1 Active none 17/07/2023 11:43 PM