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\BYPASSNRO script and has increasingly restricted or removed start ms-cxh:localonly in newer Windows 11 builds. Where still supported, ms-cxh:localonly opens 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):

  1. Press Shift + F10 on your keyboard (on some laptops, press Fn + Shift + F10).
  2. 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

  1. On the "Who's going to use this device?" screen that opens, type your desired local username.
  2. Enter a password (optional) and answer the security questions if prompted.
  3. 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:

  1. 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.xml bypass onto the USB stick.

  2. autounattend.xml Answer File: Generate an autounattend.xml file (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.

  3. Create a Local Admin via net user (OOBE Shift + F10): If you are already inside OOBE on Pro/Enterprise and ms-cxh:localonly is blocked, create a local admin account directly in cmd.exe:

    net user "LocalAdmin" * /add
    net localgroup Administrators "LocalAdmin" /add

    (Run net localgroup first if your Windows image uses a localized group name.)

See also the general Windows 11 installation guide: Install Windows 11 Without a Microsoft Account.

User