Quick answer: To bypass the Microsoft account requirement during Windows 11 installation, open a command prompt with Shift+F10 at the network or account screen and use one of the local-account methods in this guide. Newer builds removed some old tricks, so I list what still works and what to do if the local account option does not appear.
Are you trying to set up a new Windows 11 machine without linking a Microsoft account, or perhaps you find yourself without an active internet connection during the setup process? Unfortunately, Microsoft has made it increasingly difficult by removing the straightforward “offline account” or “local account” option directly from the standard Windows 11 installation screens.
However, there is no need to worry. A simple hidden command exists that can quickly redirect you to the traditional local user creation screen. In this comprehensive guide, you will learn exactly how to bypass the mandatory Microsoft Account requirement during your Windows 11 installation seamlessly and securely.
Step-by-Step Guide to Bypassing the Microsoft Account Enforcement
If you prefer to maintain your privacy or simply want to use a local account instead of connecting to a Microsoft account during the Windows 11 setup phase, just carefully follow these simple step-by-step instructions:
Boot from the Installation Media: Start by booting up your computer using your Windows 11 installation ISO, a bootable USB drive, or your installation CD.
Access the Command Prompt: Proceed through the initial setup screens until you reach the ‘Region selection’ screen. Once you are on this screen, press the Shift + F10 keys simultaneously on your keyboard. This handy shortcut will instantly open the Command Prompt window over the setup interface.

Execute the Bypass Command: Inside the Command Prompt window, carefully type the following exact command:
start ms-cxh:localonlyCode language: CSS (css)After typing it, press the Enter key to execute the command

Create Your Local Account: Immediately after running the command, the traditional local user account creation window will appear on your screen. Here, you can safely fill in your desired username, a secure password, and security questions for your offline profile. Once you have entered all the necessary information, simply click on the Next button to proceed to the next step.

Finalize the Installation: After successfully creating your local account, Windows 11 will automatically resume and finalize the installation process using your newly created offline profile, completely skipping the annoying online Microsoft account enforcement screen.

That is all there is to it! You have successfully bypassed the internet and Microsoft Account restriction. You can now start using and enjoying your Windows 11 operating system with a standard local account.
Does the ms-cxh:localonly Command Still Work?
Sometimes, and that is exactly the problem. Microsoft has been closing these shortcuts one by one. Reports covering the Insider channels say the start ms-cxh:localonly command stopped working in builds 26220.6772 (Dev) and 26120.6772 (Beta), and that the older OOBE\BYPASSNRO command was removed starting with builds 26120.3653 and 26200.5516. Other testers still report the local account command working on some 25H2 builds, so the honest answer depends on the exact installation media you are using.
Before you start, check which build your ISO contains. If the command opens nothing or the setup returns to the account screen, do not keep retrying it. Move to one of the alternatives below.

Alternative Methods to Bypass the Microsoft Account Requirement
Each of these is run from the Command Prompt you open with Shift + F10 on the region selection screen. On many laptops you need to press Fn + Shift + F10 instead.
Method 1: BypassNRO registry value. This sets the same flag the removed command used, then restarts setup:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f
shutdown /r /t 0After the restart, press Shift + F10 again and run ipconfig /release, or simply unplug the network cable and disconnect Wi-Fi. Continue through setup, choose I don’t have internet, then Continue with limited setup, and create the local account.
Method 2: HideOnlineAccountScreens. This hides the online account pages so setup falls through to local account creation:
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\OOBE /v HideOnlineAccountScreens /t REG_DWORD /d 1 /fClose the Command Prompt and continue the setup normally.
Method 3: Developer console. On the account screen press Ctrl + Shift + J, and run the following in the console that opens. Press Escape or click the screen a few times if the console stays open afterwards:
WinJS.Application.restart("ms-cxh://LOCALONLY")Code language: JavaScript (javascript)Windows 11 Pro and Prebuilt Installation Media
Windows 11 Pro has one more built-in route: choose Set up for work or school, then Domain join instead. This lets you create a local user without a Microsoft account. It is not available on Home.
If none of the commands work on your build, create the installation USB with Rufus or Ventoy. Rufus can build media that already skips the online account requirement, which also saves you from typing commands on every new machine.
Local Account vs Microsoft Account: What You Give Up
A local account is a perfectly valid way to run Windows 11, but you trade away a few conveniences. Settings and passwords will not sync between devices, and some Microsoft services ask you to sign in later. If BitLocker or device encryption is turned on, remember that the recovery key will not be saved to a Microsoft account for you, so back it up yourself.
For managed environments, the better answer is usually not a bypass at all. Join the device to Active Directory or Microsoft Entra ID and let the organization handle sign-in.
Troubleshooting: When the Windows 11 Local Account Option Does Not Appear
- Shift + F10 does nothing: make sure you are on the region or language screen, and try Fn + Shift + F10 on laptops.
- The command opens no window: your build likely removed it, so switch to the registry methods.
- Setup keeps asking for a network: disconnect Ethernet and Wi-Fi, or run
ipconfig /releasebefore continuing. - Setup returns to the sign-in screen: restart the installation and apply the registry method before reaching the account page.
Read more: https://sysarticle.com/sccm-filter-collection-by-ou/
Read more: How To Windows Server 2016 Metadata Cleanup Best Way
Read more: Upgrade Microsoft Entra Connect Best Way
FAQ
Can I still bypass the Microsoft account in Windows 11 in 2026?
Often yes, but it depends on the build. The start ms-cxh:localonly command was blocked on newer Insider builds, while registry methods such as BypassNRO and HideOnlineAccountScreens were still reported working. Always test on your own installation media.
Why does start ms-cxh:localonly not work on my installation?
Microsoft removed the command in newer builds, so your media probably includes the change. Use the registry methods or build the USB with Rufus or Ventoy.
Does this work on Windows 11 Home and Pro?
The registry and command methods are run from the setup Command Prompt and are not tied to an edition in the sources I checked. The Domain join instead option is available only on Windows 11 Pro.
Is it safe to use a local account on Windows 11?
Yes. A local account works normally, but settings will not sync across devices and you must back up any BitLocker recovery key yourself.
Can I add a Microsoft account later?
Yes. You can sign in with a Microsoft account from Settings after setup if you change your mind.
References
Pureinfotech: Windows 11 without Microsoft account
Tom’s Hardware: Microsoft eliminates workaround that circumvents Microsoft account requirement






