Bypass the Microsoft Account Requirement During Windows 11 Setup
How to skip the forced Microsoft Account sign-in during Windows 11 setup and create a local administrator account instead, so your Microsoft Account can be added later as an unprivileged user.
By default, Windows 11's out-of-box experience (OOBE) forces you to sign in with a Microsoft Account before you can finish setup. The problem: that account becomes the machine's built-in administrator.
If you'd rather keep a dedicated local admin account for machine management and add your Microsoft Account as a standard (unprivileged) user afterward, there's a clean way to do it — no network cable unplugging required.
Why bother?
- Your Microsoft Account credentials shouldn't be the keys to the admin kingdom on every machine you own.
- A local admin account gives you a fallback if your Microsoft Account is ever locked, suspended, or unavailable.
- It mirrors how most IT environments work: admin accounts are separate from daily-use accounts.
The trick: ms-cxh:localonly
During the user account creation step of Windows 11 setup, Microsoft hides the local account option. You can bring it back with a single command launched from a hidden command prompt.
Step 1 — Get to the account creation screen
Work through Windows 11 setup normally until you reach the screen asking you to sign in with a Microsoft Account. Stop here — don't sign in.
Step 2 — Open a command prompt
Press Shift + F10.
A command prompt window will open in the background. If it doesn't appear, try clicking on the taskbar area or pressing Shift + F10 again.
Step 3 — Launch the local account dialog
In the command prompt, type:
start ms-cxh:localonly
Press Enter. A dialog will appear that lets you create a local account with a username and password — no Microsoft Account required.
Step 4 — Finish setup
Complete the rest of the setup flow as normal. Windows will finish installing with your new local account as the administrator.
After setup: add your Microsoft Account as a standard user
Once you're on the desktop:
- Open Settings → Accounts → Family & other users
- Click Add account
- Sign in with your Microsoft Account
- After it's added, it will default to Standard User — leave it that way
If you need to run something as admin, you'll use your local admin account via Run as administrator or UAC elevation.
Notes
- Tested and still working as of May 2026.
- This approach works on Windows 11 Home and Pro.
- The
ms-cxh:localonlyshortcut is an undocumented but stable URI handler that Microsoft has left in place as OOBE setups evolve — it was introduced as a workaround when the local account option was removed from the standard flow. - If you're setting up a work or school machine that will be enrolled in Intune or joined to Entra ID, this approach isn't appropriate — those scenarios expect a Microsoft or organizational account.