How To Jul 6, 2026 9 min read

HOW TO USE LOCAL ACCOUNT FOR WINDOWS 11 SETUP INSTALL

YouTube Thumbnail

If you are setting up Windows 11 and it suddenly asks you to sign in with a Microsoft account, it can feel like you have hit a wall. The good news is that you can still create a local account during setup by opening Command Prompt and running one simple command. This guide walks through the process in a practical, step by step way so you can get Windows 11 installed without connecting your personal Microsoft account.

A clean modern workspace with a Windows 11 laptop on a white desk, soft natural light, a minimal blue accent notebook, and a calm practical technology setup for a personal productivity blog.

Windows 11 setup is designed to guide most people towards signing in with a Microsoft account. For many users, that is convenient. It can sync settings, connect OneDrive, restore some preferences, and make Microsoft Store access easier.

But not everyone wants that during the first setup. You might be preparing a test laptop, setting up a spare machine, installing Windows for a family member, or building a clean work device where you want to control every account and service manually.

A local account keeps the first setup simple. The account exists only on that computer. You choose the username, choose whether you want a password, and get straight into Windows without needing to register or sign in online.

Key idea: A local account is useful when you want a clean, private, simple Windows setup first. You can always add a Microsoft account later if you decide you need sync, OneDrive, or Store features.

In the transcript example, the setup screen is showing the Unlock your Microsoft experience page. This is the point where Windows 11 is asking you to sign in or register.

HOW_TO_USE_LOCAL_ACCOUNT_FOR_WINDOWS_11_SETUP_INST-0-00-04.png

If you are on this screen and do not want to create or use a Microsoft account, do not panic and do not restart the installation. You only need to open a hidden command window and launch the local account setup flow.

The local account setup playbook

This is the practical sequence I would follow. It is simple, but it is worth doing carefully because the command must be typed correctly.

Step 1: Stop at the Microsoft account screen

When you reach the sign in or registration screen, leave it open. You do not need to enter an email address. You do not need to disconnect the computer from the internet. You also do not need to go backwards through the setup pages.

The important thing is to stay on the Windows setup screen where Microsoft is asking you to unlock your experience or sign in.

This is the stage where you can bring up Command Prompt using a keyboard shortcut.

HOW_TO_USE_LOCAL_ACCOUNT_FOR_WINDOWS_11_SETUP_INST-0-00-10.png

Step 2: Open Command Prompt with Shift F10

Press Shift F10 on your keyboard. On some laptops, especially compact models, you may need to press Shift Fn F10 because the function keys may be mapped to brightness, volume, or media controls by default.

A black Command Prompt window should appear over the Windows setup screen. This is normal. It may look a bit technical, but you only need to type one line.

If nothing appears, try these quick checks:

  • Hold Shift first, then press F10.
  • Try Shift Fn F10 if your laptop uses function key shortcuts.
  • Make sure the keyboard is responding during setup.
  • If using a wireless keyboard, try a wired keyboard if available.

This shortcut is one of those small Windows setup tricks that is very handy when you are doing installs, testing machines, or fixing computers for other people.

A close up photorealistic view of hands pressing Shift and F10 on a modern laptop keyboard during a Windows 11 setup process, clean white desk, minimal blue lighting accents.

Step 3: Run the local account command

In Command Prompt, type the following command exactly:

start ms-cxh:localonly

Then press Enter.

The transcript describes it as typing start, then a space, then ms-cxh:localonly. The space after the word start matters. The rest of the command should be typed as one continuous string.

HOW_TO_USE_LOCAL_ACCOUNT_FOR_WINDOWS_11_SETUP_INST-0-00-30.png

After you press Enter, Windows should open a local user account creation screen. This bypasses the Microsoft account sign in flow and gives you the option to create a user that exists only on this device.

If you are setting up multiple computers, this command is worth saving somewhere because it can save a lot of time.

Step 4: Create the local user account

Once the local account screen appears, type the username you want to use. This might be your first name, a simple admin name, or a purpose based name such as Studio, Office, Test, or Family.

HOW_TO_USE_LOCAL_ACCOUNT_FOR_WINDOWS_11_SETUP_INST-0-00-35.png

Keep the username simple. Avoid using special symbols if you do not need them. A simple username makes file paths easier to read later, especially if you work with documents, videos, scripts, backups, or development tools.

You may also be asked to create a password. You can use a password if you want better local security. Depending on the setup flow you see, you may also be able to continue without one.

For a daily use computer, I recommend using a password. Even if the device stays at home, a password helps protect your files if someone else gets access to the machine.

HOW_TO_USE_LOCAL_ACCOUNT_FOR_WINDOWS_11_SETUP_INST-0-00-51.png

After the username and password steps are completed, Windows 11 should continue the setup process and automatically sign you into the new local account.

Decision points before choosing local or Microsoft account

A local account is not always better, and a Microsoft account is not always bad. It depends on how you plan to use the computer. Here is a simple comparison to help you decide.

Option Best for Things to consider
Local account Clean installs, test devices, privacy focused users, offline setups, shared home computers Settings do not automatically sync, OneDrive is not connected by default, Microsoft Store may ask you to sign in later
Microsoft account Personal daily computers, OneDrive users, people who want sync, Store apps, Xbox, or Microsoft services More online integration, more prompts and connected services during setup

If you are an entrepreneur, creator, or someone who works across a few devices, the Microsoft account route can be useful. It can sync browser settings, app preferences, and files if you use OneDrive. But if you like starting with a clean environment, the local account method gives you more control at the beginning.

My preference for testing or troubleshooting is usually to start local first. That way I can confirm the hardware, drivers, display, audio, network, and performance are all working before connecting cloud services.

Troubleshooting if the command does not work

Most of the time, the command works straight away. If it does not, check the simple issues first.

Check the spelling of the command

The command must be entered carefully:

start ms-cxh:localonly

There is a space between start and ms-cxh:localonly. There are no spaces inside ms-cxh:localonly.

If you type the command incorrectly, Windows may do nothing, or it may show an error. Reopen Command Prompt if needed and try again.

Try the function key combination

If Command Prompt does not appear when you press Shift F10, the issue may be your keyboard layout or laptop function keys. Try pressing Shift Fn F10. This is common on smaller laptops where F10 shares a key with another function.

Check if the device is managed

If the computer belongs to a workplace, school, or organisation, the setup may be controlled by device management policies. In that case, you may not be allowed to create a normal local account during setup.

If it is your own computer, this is less likely. If it is a company device, check with the person who manages the device before trying to bypass any setup requirements.

Restart only if you need to

You normally do not need to restart. If the setup screen freezes or the command window will not respond, restart as a last resort and return to the same point in setup. Then try the shortcut and command again.

Implementation checklist and quick FAQ

Use this checklist when you are doing the setup so you do not miss a step.

  • Reach the Windows 11 Microsoft account sign in screen.
  • Press Shift F10 to open Command Prompt.
  • If needed, try Shift Fn F10 on laptops.
  • Type start ms-cxh:localonly and press Enter.
  • Create your local username.
  • Add a password if you want local security.
  • Continue setup and let Windows sign into the account.
  • After setup, check Windows Update, drivers, display, sound, and network.

Can I add a Microsoft account later?

Yes. After Windows is installed, you can go into Settings and add a Microsoft account later. This is useful if you want to start clean first, then connect OneDrive, Microsoft Store, Office, or other services once you are ready.

Is a local account less secure?

Not automatically. A local account with a strong password can be secure for normal use. The bigger difference is that a Microsoft account may offer extra online recovery and account protection features. If you choose a local account, make sure you remember the password and keep your device protected.

Will this remove Windows activation?

No. Creating a local account does not remove Windows activation. Activation is usually tied to your hardware or product key. After setup, you can check activation in Windows Settings.

Should I use this for a main work computer?

It depends on your workflow. If you rely heavily on OneDrive, Microsoft 365, Store apps, or syncing settings across computers, signing in with a Microsoft account may be convenient. If you prefer a clean machine and want to connect services manually, start with a local account.

This method is a practical way to keep control of your Windows 11 setup. Press Shift F10, run the local account command, create your username, and continue into Windows without registering for a Microsoft account during installation.

Frequently Asked Questions

Can I set up Windows 11 without a Microsoft account?
Yes. During Windows 11 setup, you can create a local account by opening Command Prompt with Shift + F10 and running the command start ms-cxh:localonly. This opens the local account creation screen.
What is the exact command to create a local account during Windows 11 setup?
The command is start ms-cxh:localonly. Make sure there is a space after start, then type ms-cxh:localonly as one continuous string before pressing Enter.
What should I do if Shift + F10 does not open Command Prompt?
Try pressing Shift + Fn + F10, especially on laptops where the function keys control brightness or volume. You can also check that your keyboard is responding, or try a wired keyboard if you are using a wireless one.
Is a local account better than a Microsoft account?
It depends on how you use the computer. A local account is useful for clean installs, test devices, shared computers, privacy-focused setups, or offline use. A Microsoft account is better if you want OneDrive, settings sync, Microsoft Store access, Xbox services, or other Microsoft integrations.
Can I add a Microsoft account later?
Yes. Creating a local account during setup does not lock you out of Microsoft services. You can add or sign in with a Microsoft account later from Windows Settings if you decide you want sync, OneDrive, Store apps, or other connected features.
Generated infographic

Follow the journey

Get the next build note in your inbox.

Short updates from Marco on entrepreneurship, products, tools, family milestones, and the daily running streak.

This field is required.

Check your inbox or spam folder to confirm your subscription.