I am looking for a script to start a VM in VirtualBox at Windows boot in Windows 10 but have it come up with a full-screen GUI. I just need the script. Everything else is working so please don't spend time on off-topic discussions that are not script related.
I have searched very thoroughly for how to do this and all I can find is how to do a headless VM start. That is for a remote desktop VM access, and I am trying to do this on a stand-alone PC without using remote desktop. Has anyone successfully done this? Everything I have tried using what info and scripts, batch files, etc. has not worked. I have gotten the headless start to work, but again that isn't what I need. There has to be a way, as it is possible to get other shortcuts to work on startup. I haven't been able to get vboxmanage.exe to start a VM automatically at boot. I want this to work after an auto-login. I am trying to present the VM to the user as if it were booting directly into the VM. Thanks in advance for any answers.
( I will shorten this soon, and post the final script, etc. For now, for others who might need the info, here is my current solution...)
Thanks to all for the help. Especially djsmiley2k.
I used Task Scheduler to get a working solution as follows:
I first created a shortcut to the VM on my desktop. (I am not at my work computer right now, so I don't have the exact info, so I will update it when I do get back to it.)
The result is a standard shortcut, with a call to Virtualbox.exe and the parameters to pass. The working folder is also filled in, but not really needed.
I created a .bat file and copied and pasted the info from the shortcut into it.
Then, I went into Task Scheduler, and created a New Task, not a basic task. I called it VMStart. I set the trigger to at login, and then made the action 'start a program.' I pointed this to the .bat file. I set the task to be run with highest priviledges. This is important so that the cmd window comes up with administrator priviledges to start the VM.
I set the Windows 10 taskbar to auto-hide, and turned off the password requirement for the user. I was logged in with the user I wish for the machine to boot up with. I adjusted the settings of the VM where the user interface has no menu and no toolbar. I set the view options to prevent the VM from changing the HOST display resolution. I started the VM, and switched it to full-screen mode. Then I made sure to set the VM screen resolution to what I wanted. I then shutdown the VM. This leaves the settings of the VM as I want it to be when it starts. The host key still works, so I can manage the VM if I need to and bring up the VirtualBox manager gui.
Now, when I start the computer, Windows 10 boots, brings up the user I last used, and immediately logs in. As soon as the desktop comes up, the cmd window opens, and the VM starts, switches to full screen and takes over.
For now this is enough, but I will need to lock it down more eventually. Using the answers I now have more info to work for that.
Again, thanks for the great solutions offered!