Skip to content

Instantly share code, notes, and snippets.

@downthecrop
Created September 14, 2020 20:18
Show Gist options
  • Save downthecrop/1a28d885e1e8143512932d271274e6a9 to your computer and use it in GitHub Desktop.
Save downthecrop/1a28d885e1e8143512932d271274e6a9 to your computer and use it in GitHub Desktop.
Windows True Headless VBox (No Console)
Dim WshShell
Dim obj
Set WshShell = WScript.CreateObject("WScript.Shell")
obj = WshShell.Run("START /MIN CMD.EXE /C "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --startvm Ubuntu", 0)
set WshShell = Nothing
@downthecrop
Copy link
Author

To auto start just copy a shortcut to %appdata%\Microsoft\Windows\Start Menu\Programs\Startup

@downthecrop
Copy link
Author

Update: use nircmd or write something like this in 2 minutes. nircmd.exe exec hide "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --startvm Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment