Skip to content

Instantly share code, notes, and snippets.

@marhensa
Last active November 19, 2025 14:11
Show Gist options
  • Select an option

  • Save marhensa/d137ffb2ecaeff2899804f6ad34c7469 to your computer and use it in GitHub Desktop.

Select an option

Save marhensa/d137ffb2ecaeff2899804f6ad34c7469 to your computer and use it in GitHub Desktop.
Windows 11 25H2 Local Account Workaround (Proper)

Windows 11 25H2 Local Account Workaround (Proper)

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:

  • DefaultAccountAction
  • DefaultAccountSAMName
  • DefaultAccountSID

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.

@looeee
Copy link

looeee commented Nov 12, 2025

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.

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