Install Windows 11 Pro with offline local account
When installing Windows 11, Microsoft requires an internet connection and a Microsoft Account during the OOBE (Out Of Box Experience). This guide explains how to bypass that requirement and create a traditional offline local account.
Method 1: OOBE Command Prompt (start ms-cxh:localonly)
Important Note on Current Windows 11 Builds: Microsoft removed the old
OOBE\BYPASSNROscript and has increasingly restricted or removedstart ms-cxh:localonlyin newer Windows 11 builds. Where still supported,ms-cxh:localonlyopens the local account prompt immediately; if it does nothing, shows an error, or loops back to the Microsoft Account screen on your installation media, use Method 2 below.
Step 1: Start Installation Offline
Proceed with the standard Windows 11 installation until you reach the "Let's connect you to a network" screen. If you are connected via Ethernet, unplug the cable now and do not connect to Wi-Fi.
Step 2: Open Command Prompt
On the "Let's connect you to a network" screen (or earlier during setup):
- Press Shift + F10 on your keyboard (on some laptops, press Fn + Shift + F10).
- A Command Prompt window (
cmd.exe) will appear.
Step 3: Execute Bypass Command
In the Command Prompt window, type the following command and press Enter:
start ms-cxh:localonly
This immediately opens the classic local account creation screen without requiring a restart and without showing an "I don't have internet" option.
Step 4: Create Your Local Account
- On the "Who's going to use this device?" screen that opens, type your desired local username.
- Enter a password (optional) and answer the security questions if prompted.
- Complete the remaining privacy steps. Once Windows reaches the desktop, you can reconnect Ethernet or Wi-Fi normally.
Method 2: Reliable Fallbacks (Rufus / autounattend.xml / net user)
If start ms-cxh:localonly does nothing, shows an error, or loops back to the Microsoft Account screen on your Windows 11 image:
-
Rufus (Recommended before install): Create your bootable USB stick with Rufus and enable "Remove requirement for an online Microsoft account" in the Windows User Experience dialog. Rufus automatically writes an
autounattend.xmlbypass onto the USB stick. -
autounattend.xmlAnswer File: Generate anautounattend.xmlfile (for example, using the Schneegans Windows Answer File Generator) to skip OOBE network/Microsoft Account prompts and pre-create a local administrator account, then place it in the root directory of your USB installer. -
Create a Local Admin via
net user(OOBEShift + F10): If you are already inside OOBE on Pro/Enterprise andms-cxh:localonlyis blocked, create a local admin account directly incmd.exe:net user "LocalAdmin" * /add net localgroup Administrators "LocalAdmin" /add(Run
net localgroupfirst if your Windows image uses a localized group name.)
See also the general Windows 11 installation guide: Install Windows 11 Without a Microsoft Account.