Windows 11 Setup: Bypass Microsoft Account Requirement

When installing Windows 11 Home , if you want to get around the requirement of having to connect to the internet and login with a MS account, try the following. N.B. Windows 11 Professional already allows you to bypass the Microsoft account if you disconnect from the internet while doing setup. Or you can try option number 2.

At the screen where it asks for the Microsoft account to login with, press Shift F10 to open up a cmd prompt window*.
 
There are 2 cmds you can type:
 
  1. X:\> oobe\bypassnro
This will cause the setup to restart (i.e. a computer reboot). Then when you get to the same Microsoft screen again you will have the option to login with a local account.
 
 
Interestingly running oobe\bypassnro actually runs a bypassnro.cmd file in \Windows\System32\oobe. This file contains the following:
@echo off
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f
shutdown /r /t 0

or
  1. x:\> start ms-cxh:localonly
This opens up a form window to fill in your username/login and optional password. Once accepted and the window is closed, the computer will restart.
 
* If Shift-F10 does NOT work, then you probably have a Windows running in S-Mode.