After installing Windows to a partition and then after the automatic reboot:
When the installation screen shows "Is this the right country or region?" press: Shift + F10
In the Command Prompt, type the following commands:
(change vboxuser to your username)
net user vboxuser * /add
net localgroup administrators vboxuser /add
net user vboxuser /active:yes
net user vboxuser /expires:never
net user Administrator /active:no
net user defaultUser0 /delete
regedit
In the Registry Editor, navigate to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE
Delete these three registry entry keys inside the OOBE registry folder:
DefaultAccountActionDefaultAccountSAMNameDefaultAccountSID
Rename:
LaunchUserOOBE
to
SkipMachineOOBE
Double-click the SkipMachineOOBE registry entry and set the value to:
1
Close the Registry Editor, go back to the Command Prompt, and type:
shutdown /r /t 0
The system will reboot. There will be a wrong password error on the first boot (this is one-time only).
Press OK and then type the actual password you set previously.
This doesn't seem to work for me as of 13 November 2025. When I press Shift+f10 at the "Is this the right country or region?" screen, there's an hourglass (blue circle) next to mouse for a second, but the command prompt doesn't open.