How to Fix Windows 11 “Start ms-cxh:localonly” Setup Problems and Understand Local Account Options

The quickest fix for most Windows 11 “Start ms-cxh:localonly” setup problems is to run the command from the setup screen with networking disabled, then create the local user before reconnecting. Microsoft says Windows 11 Home requires internet and a Microsoft account during first setup, which explains why this workaround gets used so often [source: Microsoft]. It drives people crazy because a simple offline account can turn into a 10-minute fight with Wi-Fi prompts, sign-in screens, and vague errors.

TLDR: The start ms-cxh:localonly command can open the hidden local account setup page during Windows 11 setup. For example, a repair shop setting up 20 laptops may save 5 to 8 minutes per device by skipping Microsoft account sign-in and creating local admin accounts first. If the command fails, the cause is usually a typo, an active internet connection, a changed Windows build, or a blocked setup flow. The safest fallback is to disconnect from the internet, restart setup, or use a supported local account option after Windows is installed.

What “Start ms-cxh:localonly” Means

ms-cxh:localonly is a Windows URI route used during the Out-of-box Experience, also called OOBE. When launched with the start command, it may open the local account creation screen instead of the Microsoft account screen.

This is not a normal desktop app. It is tied to Windows setup. That is why it feels fragile. On one Windows 11 build, it may work in seconds. On another, it may do nothing at all.

How to Try the Command Correctly

The person setting up the PC should first reach the Windows 11 setup screen where the Microsoft account is requested. Then these steps usually work:

  1. Press Shift + F10 to open Command Prompt.
  2. If a laptop uses a special keyboard layout, try Fn + Shift + F10.
  3. Type start ms-cxh:localonly exactly.
  4. Press Enter.
  5. Create the local user name and password if the local account form appears.

The command is easy to mistype. The spacing matters. There is a space after start. The rest should be typed as one piece: ms-cxh:localonly.

Why the Command Fails

Most failures come from a few common causes:

  • The PC is still online. Windows setup may keep pushing the Microsoft account path.
  • The command was typed wrong. Even one extra space can break it.
  • The Windows build changed. Microsoft updates setup behavior often.
  • Command Prompt did not open as expected. Some keyboards need the Fn key.
  • The setup page is stuck. OOBE can freeze or ignore commands. Annoying, but common.

If nothing happens after Enter, the person should not keep typing random commands for 20 minutes. That usually wastes time. A restart with no internet often works better.

Fixes That Usually Work

The best fix is simple: cut off the internet before running the command. That means unplugging Ethernet and avoiding Wi-Fi. If Windows already connected to Wi-Fi, the user can restart the PC and avoid reconnecting.

Another option is to open Command Prompt with Shift + F10, type ipconfig /release, and press Enter. This may drop the current network address. After that, the person can try start ms-cxh:localonly again.

If the command still fails, the older OOBE\BYPASSNRO method may appear on some builds. It restarts setup and can bring back an offline setup choice. This is not guaranteed on every newer release, so no technician should treat it as a permanent fix.

Local Account Options by Windows Edition

Windows 11 Home is the strictest edition. It usually pushes a Microsoft account during first setup. That is where this command is most useful.

Windows 11 Pro gives more room. During setup, a user may see options such as work or school setup. From there, some builds allow a domain join path, which can lead to local account creation. The wording changes, which is part of the problem. Honestly, it feels like the same task hides behind a new label every few updates.

For business devices, local accounts may also be created later by an administrator. That can happen through Computer Management, Settings, or deployment tools.

Creating a Local Account After Setup

If the PC was already set up with a Microsoft account, all is not lost. A local account can still be added later.

  1. Open Settings.
  2. Go to Accounts.
  3. Choose Other users.
  4. Select Add account.
  5. Choose the option that says the sign-in info is not available.
  6. Select Add a user without a Microsoft account, if shown.

After the local account is created, it can be changed to an administrator account if needed. This should be done only for trusted users.

When a Local Account Makes Sense

A local account is useful for test PCs, repair benches, shared shop systems, lab computers, and privacy-focused setups. It also helps when the owner does not want OneDrive, sync, or Microsoft account recovery tied to the device.

Still, there are tradeoffs. A local account does not offer the same cloud password recovery. BitLocker recovery keys may also be harder to track if the owner does not store them safely. The user should write down passwords and recovery details before the machine goes into daily use.

FAQ

Is “start ms-cxh:localonly” safe?

Yes, when typed during Windows setup, it only tries to open the local account setup flow. It is not malware or a hack tool.

Why does nothing happen after the command is entered?

The Windows build may block it, the PC may still be online, or the command may have been typed wrong.

Does this work on every Windows 11 PC?

No. Microsoft changes setup behavior. Some builds allow it. Others ignore it.

Can a Microsoft account be removed later?

Yes, another local administrator account can be created first. Then the Microsoft account can be removed if it is no longer needed.

Is a local account better than a Microsoft account?

Not always. A local account gives more offline control. A Microsoft account gives easier sync, recovery, and Store access.