If you’ve recently tried setting up a new PC with Windows 11 24H2, you’ve probably noticed how aggressive Microsoft has become about requiring a Microsoft account. Whether you’re a privacy advocate, setting up a test machine, or just prefer using local accounts, this can be a frustrating roadblock. Even more frustrating Microsoft have removed previous work arounds including the OOBE command.
Thankfully, there’s still a clever workaround — and it’s as simple as a command. Here’s how you can bypass the Microsoft account requirement using the start ms-cxh:localonly trick.
Why Microsoft Is Pushing Microsoft Accounts
Since the release of Windows 11, Microsoft has increasingly tied its OS functionality to cloud services. Starting with Home edition (and now affecting Pro users too), the system tries to funnel every user into using a Microsoft account during the out-of-box experience (OOBE). It’s good for syncing and cloud services — but not everyone wants or needs it.
The Trick:
start ms-cxh:localonly
As of Windows 11 24H2, there’s still a backdoor of sorts — a URI command that triggers the local account setup path.
Step-by-Step Guide:
1. Proceed through initial setup: Start your Windows 11 installation as normal. When you reach the “Let’s connect you to a network” or “Sign in with Microsoft” screen, pause there.
2. Open Command Prompt by pressing Shift + F10 to open a Command Prompt window.
3. Run the local account command, type the following and hit Enter:
start ms-cxh:localonly
4. Watch the magic happen: This command will redirect you to the offline account setup screen — no Microsoft account needed.
5. Finish setup: Create your local username and password, then proceed through the rest of the setup as normal.
Does It Work on All Editions?
So far, this method has been confirmed to work on both Windows 11 Home and Pro editions in 24H2. However, Microsoft may eventually patch or remove this workaround in a future update — so keep it in your toolbox while it lasts.
Pro Tips:
- If you’re using a PC that requires Wi-Fi to proceed, and you’re stuck on the “connect to the internet” screen, you may need to temporarily disable your network (e.g., with Shift + F10 and ipconfig /release) before the command will take effect.
- You can also use similar tricks with other known URIs in the Windows setup environment, but ms-cxh:localonly remains the cleanest.
Final Thoughts
While Microsoft has good reasons for encouraging account integration, it’s equally valid for users to want a local-only experience. Whether you’re setting up a dev environment, configuring a kid’s PC, or just avoiding telemetry, this trick gives you back control.
If Microsoft ever patches this out, you can be sure the community will find another way — but for now, start ms-cxh:localonly is the easiest way to take the local road on Windows 11 24H2.
