Microsoft increasingly encourages users to sign in with a Microsoft account during Windows 11 installation. While a Microsoft account offers features such as OneDrive synchronization, Microsoft Store access, and settings backup, many users prefer using a traditional local account for privacy, simplicity, or offline use. If you are looking for bypassing internet connection while windows 11 setup then click here.
Fortunately, some versions of Windows 11 still allow creating a local account during setup through a hidden command. One commonly used method involves the command:
start ms-cxh:localonlyThis guide explains how the command works and how to use it during the Windows 11 setup process.
Why Use a Local Account?
A local account stores your credentials only on the computer and does not require an internet connection or Microsoft account.
Benefits include:
Greater privacy
No Microsoft account required
Faster setup process
Reduced cloud synchronization
Ideal for testing or lab environments
What Is start ms-cxh:localonly?
The command launches a hidden Windows setup component that allows users to create a local account directly during the Out-of-Box Experience (OOBE), which is the initial setup screen shown after installing Windows.
The command can be executed from Command Prompt during setup and may open a local account creation wizard.
Important Notes
Before proceeding, keep in mind:
Microsoft may remove or disable this method in future Windows 11 updates.
Availability varies by Windows build and edition.
Some recent versions may require alternative methods.
This method creates a local account only and does not activate Windows.
How to Use the Command
Step 1: Reach the Microsoft Account Sign-In Screen
Install Windows 11 normally until you arrive at the screen requesting a Microsoft account sign-in.
Step 2: Open Command Prompt
Press:
Shift + F10A Command Prompt window should appear.
On some laptops, you may need:
Shift + Fn + F10Step 3: Execute the Command
Type:
start ms-cxh:localonlyand press Enter.
Step 4: Create a Local User
If supported by your Windows version, a new window will appear allowing you to:
Enter a username
Create a password
Configure security questions
Complete the process and continue the Windows setup.
What Happens Next?
After finishing setup:
Windows logs into the local account you created.
No Microsoft account is linked.
You can use the PC normally.
A Microsoft account can still be added later if desired.
If the Command Doesn't Work
Microsoft regularly updates Windows setup behavior. If the command fails, it may mean the current Windows build has disabled or removed the functionality.
Common reasons include:
Updated Windows 11 installation media
Enterprise deployment restrictions
New OOBE changes from Microsoft
In such cases, alternative local-account setup methods may be required.
Is This Safe?
Yes. The command does not modify system files, install third-party software, or bypass Windows security mechanisms. It simply launches an existing Windows component that may provide a local account creation workflow.
However, because Microsoft does not officially document this method for general users, its availability can change without notice.
Local Account vs Microsoft Account
Feature | Local Account | Microsoft Account |
|---|---|---|
Offline Login | Yes | Limited |
OneDrive Sync | No | Yes |
Settings Sync | No | Yes |
Microsoft Store Integration | Limited | Full |
Privacy | Higher | More Cloud Connected |
Internet Required During Setup | No | Usually Yes |
Should You Use a Local Account?
A local account is a good choice if you:
Prefer privacy-focused computing
Use Windows offline frequently
Don't use Microsoft cloud services
Want minimal account integration
A Microsoft account may be better if you:
Use OneDrive regularly
Sync settings across devices
Purchase apps from Microsoft Store
Need password recovery through Microsoft
Conclusion
The start ms-cxh:localonly command provides a convenient way to create a local account during Windows 11 setup on supported versions. By opening Command Prompt with Shift + F10 and running the command, users may bypass the Microsoft account sign-in requirement and continue setup with a traditional local Windows account.
Because Microsoft frequently changes Windows 11 setup behavior, this method may not work on every build, but it remains a useful option when available for users who prefer local accounts over cloud-connected Microsoft accounts.



