How to Install Windows 11 Without a Microsoft Account (Methods That Still Work in 2026)
OOBE\BYPASSNRO and ms-cxh:localonly are gone on new Windows 11 builds. Here's what still works for a local account in 2026: Rufus, an autounattend.xml answer file, the BypassNRO registry value, and the fallback that always works.
Windows 11 still fully supports local accounts. Only the setup screens (OOBE) push you into a Microsoft account, and Microsoft keeps closing the shortcuts around them. The two famous ones, OOBE\BYPASSNRO and start ms-cxh:localonly, no longer work on current builds.
Status as of November 2026, in the order I'd try:
| Method | Works on current 24H2/25H2? | Best for |
|---|---|---|
| Rufus USB with local account option | Yes | Clean install from USB |
autounattend.xml answer file |
Yes | Repeatable installs, VMs |
| BypassNRO registry value + offline | Usually | Setup already running |
start ms-cxh:localonly |
Only older builds | Old ISOs |
OOBE\BYPASSNRO command |
Only older builds | Old ISOs |
| Sign in once, then switch to local | Always | When nothing else works |
If you're about to make a USB stick anyway, go with Rufus. If setup is already sitting on the Microsoft account screen, try the registry method first.
What Microsoft changed
The old trick was simple: press Shift + F10 during setup, type OOBE\BYPASSNRO, reboot, pick "I don't have internet". In 2025 Microsoft removed that script. The community moved to start ms-cxh:localonly, which opened the local user dialog directly. Then the Insider build 26220.6772 notes announced the removal of "known mechanisms for creating a local account" in OOBE. On builds that have this change, localonly just restarts setup.
Which methods work for you depends on the build on your install media, not on Home vs Pro. To check the build during setup, press Shift + F10 and run:
ver
Build numbers around 26100 are 24H2, around 26200 are 25H2. Newer ISOs block more methods.
Method 1: Rufus (easiest for a clean install)
Rufus is a free tool for writing Windows ISOs to USB. When you click Start with a Windows 11 ISO selected, it shows a Windows User Experience dialog. Tick both:
- Remove requirement for an online Microsoft account
- Create a local account with username: and type the name you want
The second box matters on newer builds. The first one alone mainly turns on the old offline path, and that path gets blocked more and more often. With the username filled in, Rufus writes a small answer file to the stick that creates the account for you, so setup never asks.
Boot from the USB and install as usual. You land on the desktop with your local account. Rufus doesn't ask for a password when it creates the account, so check under Settings > Accounts > Sign-in options after the first login and set a proper one.
If you've never made a bootable stick, the steps in creating a UEFI bootable USB apply to Windows 11 as well.
Rufus only works for clean installs from USB. It doesn't help when you upgrade in place from Windows 10, or on a new laptop that's already booting into OEM setup.
Method 2: an answer file (autounattend.xml)
This is what Rufus does under the hood, done by hand. It's the method I'd use for VMs and for installing the same setup on several PCs. Windows Setup reads autounattend.xml from the root of the install USB and skips the screens it already has answers for, including the account.
The easiest way to make one is the free Schneegans unattend generator:
- Pick language and architecture (amd64 for normal PCs).
- Under User accounts, choose to add a local account. Set the name and password, and put it in the Administrators group.
- Leave the disk settings on interactive unless you want setup to wipe disk 0 automatically.
- Download the file and copy it to the root of the USB stick as
autounattend.xml.
Be careful with step 3. An answer file that partitions disks will wipe the wrong drive just as happily as the right one.
Microsoft documents answer files for enterprise deployment, so this isn't an exploit. It's the official automation path, and it's the least likely to break with future builds.
Method 3: BypassNRO through the registry
Use this when setup is already running and you're stuck on the Microsoft account screen. Microsoft removed the bypassnro script, but on many builds the setting it used still works if you set it yourself.
- Disconnect from the network. Unplug the cable, and don't connect to Wi-Fi.
- On the network or sign-in screen, press Shift + F10 (on some laptops Shift + Fn + F10).
- Run:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f
shutdown /r /t 0
- After the reboot, setup starts again. On the network screen you should now see I don't have internet, then Continue with limited setup, which leads to local account creation.
If the "I don't have internet" link doesn't appear, your build ignores the value. Use Rufus or an answer file instead.
Method 4: ms-cxh:localonly (older builds only)
On ISOs from before the October 2025 change, this still works and doesn't even need the network unplugged. At the Microsoft account screen, press Shift + F10 and run:
start ms-cxh:localonly
A Create a user for this PC window opens. On newer builds the command restarts setup instead. If that happens, move on.
Method 5: OOBE\BYPASSNRO (oldest builds)
The original command. It only works on media from before early 2025:
OOBE\BYPASSNRO
If you get "is not recognized as an internal or external command", the script is gone from your build. Use method 3, which sets the same registry value manually.
The fallback that always works
If none of the above works, for example on an OEM laptop with its own setup image, sign in with a Microsoft account once and switch afterwards. It takes five minutes:
- Finish setup with any Microsoft account. A throwaway one is fine.
- Go to Settings > Accounts > Other users > Add account.
- Click I don't have this person's sign-in information, then Add a user without a Microsoft account.
- Create the local user, then click it and choose Change account type > Administrator.
- Sign out, sign in as the new local user, and delete the Microsoft account under Other users.
The result is the same as a local install. The only trace is the Microsoft account in your account history online.
After the install
A few things are tied to a Microsoft account and won't work automatically with a local one:
- BitLocker / device encryption recovery key. With a Microsoft account, the key is uploaded to your account automatically. With a local account it isn't. Check the drive with
manage-bde -status C:in an admin terminal. If protection is on, runmanage-bde -protectors -get C:and store the recovery key somewhere safe, or you can lose the data after a firmware or hardware change. - Microsoft Store, OneDrive, Xbox apps. These can sign in per app without converting your Windows account.
- Digital license activation. It's linked to the hardware and works with a local account. A Microsoft account only helps when you reactivate after a motherboard swap.
If you want to know later when this install was done, see how to find the Windows installation date.
FAQ
Can Microsoft force a Microsoft account later?
Not on an existing local account. Updates don't convert local accounts. You'll see prompts to "finish setting up your device" now and then. Dismiss them, or turn them off under Settings > System > Notifications > Additional settings.
Does this work on Windows 11 Home?
Yes. All methods above work on Home and Pro. What matters is the build on your install media.
Is this allowed under the Windows license?
Yes, it's allowed. Local accounts are a supported Windows feature. These methods only change how setup gets to it. Your activation and license are not affected.
Why does "I don't have internet" not show up even with the cable unplugged?
Newer builds removed that link unless BypassNRO is set. Use method 3 to set it, or skip the problem entirely with Rufus or an answer file.
Will these methods keep working?
Answer files and Rufus's local account option are the most durable, because they use the same setup automation companies rely on. The Shift + F10 commands are the ones Microsoft removes. Check the date at the top of guides like this one before you rely on them.