Follow these steps immediately upon hitting the very first Windows setup screen (Language/Region selection) to create a local user and permanently disable the Out-of-Box Experience (OOBE) loop.
-
Press
Shift + F10(orFn + Shift + F10) to open the Command Prompt. -
Type the following command to launch the hidden local-only account creator, then hit Enter:
start ms-cxh:localonly -
Complete the immediate prompts on screen to set your desired local Username and Password.
Once the user profile is created, do not reboot or click Next. Click back into your black Command Prompt window (press Shift + F10 again if it closed) and run the following three commands to permanently kill the wizard sequence:
-
Flag the machine setup as completely finished
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v SkipMachineOOBE /t REG_DWORD /d 1 /f -
Prevent the setup engine from intercepting the next boot
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v LaunchUserOOBE /t REG_DWORD /d 0 /f -
Delete the temporary setup account so it cannot hijack auto-login
net user defaultuser0 /delete
Execute a forced reboot from the command line to apply the modifications cleanly:
shutdown /r /t 0