During setup, Windows 11 insists on an internet connection and a Microsoft account. There is a way around it to create an ordinary local account with just a username and password. The quickest method is the start ms-cxh:localonly command typed during setup. Below is a step-by-step guide, plus what to do if the command no longer works in your version of Windows.
Local account or Microsoft account?
| Local account | Microsoft account | |
|---|---|---|
| Sign-in | username and password (or PIN) on this computer only | Microsoft email address, the same account on many devices |
| Internet during setup | not needed | required |
| Settings sync and OneDrive | none (you can sign in to selected apps later) | automatic |
| Password recovery | security questions | Microsoft website |
| BitLocker key | you have to save it yourself | stored in your Microsoft account |
A local account is usually chosen by people who do not want to tie their computer to a cloud account, by businesses preparing computers for staff, and by repair shops installing Windows without customer data.
Method 1: the start ms-cxh:localonly command
- Start the Windows 11 installation from a USB stick or reset the computer to factory settings. Go through the first screens: language, time and currency format, keyboard layout.
- Get to the network or sign-in screen, where Windows asks you to connect to the internet or sign in with a Microsoft account. Do not enter an email address.
- Open Command Prompt with Shift + F10. On some laptops you need Fn + Shift + F10.
- Type the command
start ms-cxh:localonlyand press Enter. - A “Create a user for this PC” window appears. Enter a username, a password (twice) and answers to three security questions. Setup will finish on the local account.
If Command Prompt does not open, the F1–F12 keys may only work together with Fn. On many laptops you can change this with Fn Lock or in the BIOS.
Method 2: when the command does not work
Microsoft is gradually removing workarounds that let you skip the Microsoft account from new versions of Windows 11. The older oobe\bypassnro command no longer works in recent releases, and start ms-cxh:localonly may go the same way. In that case you have two options:
- Prepare the USB stick with Rufus. When writing a Windows 11 image, Rufus offers extra options, including removing the Microsoft account requirement and creating a local account with a name you choose. Installing from that stick ends directly on a local account.
- Sign in with a Microsoft account, then add a local account. After setup go to Settings → Accounts → Other users → Add account → “I don’t have this person’s sign-in information” → “Add a user without a Microsoft account”. Give the new account administrator rights, sign in to it and remove the Microsoft account from the computer.
What to watch out for on a local account
- Save your BitLocker recovery key if drive encryption is on (Settings → Privacy & security → Device encryption). Without a Microsoft account the key is not uploaded to the cloud automatically, and without the key your data may become unreadable after a motherboard failure or a BIOS change.
- Remember your security answers. They are the only built-in way to reset a forgotten password.
- Make backups to an external drive, because files do not sync to OneDrive on their own.
- You can still sign in to apps such as Microsoft 365 or the Microsoft Store with a Microsoft account separately, without switching the whole of Windows to an online account.
Frequently asked questions
Does a local account work in Windows 11 Home and Pro?
Yes. The methods above apply to both editions. In Windows 11 Home the Microsoft account requirement is just more annoying, because setup shows no other option.
Can I switch a local account to a Microsoft account later?
Yes. In Settings → Accounts → Your info, choose to sign in with a Microsoft account instead. Your files and programs stay where they are.
Will a local account get Windows updates?
Yes. Windows Update works the same on a local account as on a Microsoft account.
I am moving from Windows 10. Where do I start?
First check whether your computer meets the Windows 11 requirements. We cover all the options in End of Windows 10 – what to do with your computer now.
Would you rather have someone install Windows for you? At LaptopControl.pl (ul. Smolna 13/13, Warsaw) we can install Windows 11 on a local account, move your data and save the BitLocker key. We can also sort out setup problems via remote support. We speak English. Phone +48 500 410 389.
Ex-lease laptops with Windows 11 Pro pre-installed are available in our ZLC.PL shop.