Bypass Microsoft Account Setup in Windows 11

Create local accounts during Windows 11 setup with the start ms-cxh:localonly command. Steps, enterprise use, privacy notes and limits.

2025-05-09 · 5 min read · 857 words · difficulty: Intermediate

#Windows#Windows 11#OOBE#Local Account#Microsoft Account#URI Scheme#DeploymentWindowsSystem AdministrationDeployment

Table of contents

Windows 11 pushes hard toward Microsoft accounts during setup. But plenty of us still need local accounts: for privacy, lab machines, or plain organizational policy. The start ms-cxh:localonly command gets you there. Below: what it does, how to use it step by step, and where it falls short.

Introduction

Windows 11 setup pushes a Microsoft account, and the old workarounds stopped working. Context first, then the exact steps.

Previously, users employed the oobe\bypassnro command to circumvent the Microsoft account requirement. However, Microsoft has removed this method in recent builds, prompting the need for alternative solutions like start ms-cxh:localonly.

What Is start ms-cxh:localonly?

The start ms-cxh:localonly command is a URI (Uniform Resource Identifier) scheme used within Windows 11 to initiate the local account creation process during the Out-of-Box Experience (OOBE). By executing this command, users can bypass the default requirement to sign in with or create a Microsoft account during setup.

Breakdown of the Command

  • start: A command-line instruction used to initiate a program or process.
  • ms-cxh:localonly: A URI scheme that triggers the local account setup interface within the Windows 11 OOBE.

This command effectively redirects the setup process from the cloud-based Microsoft account creation to a local account setup, providing users with an alternative path during installation.

Historical Context

Creating a local account at setup used to be straightforward. Windows 11 moved to a cloud-first flow that usually asks for a Microsoft account. The sync and services are genuinely useful, but not everyone wants them: privacy, lab machines, or company policy. Microsoft also removed the old oobe\bypassnro trick in recent builds, which is why start ms-cxh:localonly exists.

Previously, users employed the oobe\bypassnro command to circumvent the Microsoft account requirement. However, Microsoft has removed this method in recent builds, prompting the need for alternative solutions like start ms-cxh:localonly.

Practical Applications

Bypassing Microsoft Account Requirement

During the Windows 11 setup process, users can invoke the start ms-cxh:localonly command to bypass the Microsoft account requirement. This is particularly useful in scenarios where internet access is unavailable or when users prefer not to associate their device with a Microsoft account.

Enterprise and Organizational Use

Organizations often mandate local accounts for security and compliance. With this command, IT administrators can roll out Windows 11 across many machines without setting up a Microsoft account for each user.

Privacy-Conscious Users

For individuals concerned about data privacy, creating a local account ensures that personal information is not automatically synced with Microsoft’s cloud services. This approach minimizes data exposure and provides greater control over personal information.

Step-by-Step Guide to Using start ms-cxh:localonly

  1. Initiate Windows 11 Setup: Begin the installation process as usual.
  2. Access Command Prompt: When prompted to sign in with a Microsoft account, press Shift + F10 to open the Command Prompt.
  3. Execute the Command: Type start ms-cxh:localonly and press Enter.
  4. Create Local Account: A window will appear. Enter a username and password to create the local account.
  5. Continue Setup: Proceed with the remaining setup steps, such as configuring privacy settings.

This method is straightforward and does not require disconnecting from the internet or modifying system files.

Technical Considerations

URI Schemes in Windows

Windows uses URI schemes so apps and system parts can talk to each other. The ms-cxh scheme belongs to the Cloud Experience Host, which runs the OOBE screens. Tack on localonly and it opens local-account setup instead of the Microsoft-account flow.

Compatibility

The start ms-cxh:localonly command is compatible with various editions of Windows 11, including Home and Pro. However, its functionality may be subject to change in future updates, as Microsoft continues to refine the setup experience. Users should verify compatibility with their specific Windows 11 build before relying on this method.

Security and Privacy Implications

Data Sovereignty

Creating a local account ensures that user data remains stored locally on the device, aligning with data sovereignty requirements in certain jurisdictions. This approach is beneficial for organizations operating under strict data protection regulations.

Reduced Attack Surface

By avoiding the integration of a Microsoft account, users can minimize the attack surface associated with cloud-based services. This reduces the risk of unauthorized access to personal data through compromised Microsoft accounts.

Compliance with Organizational Policies

Many organizations have policies that restrict the use of external accounts or cloud services. Utilizing local accounts during setup ensures compliance with such policies and simplifies device management within the organization.

Limitations and Considerations

Feature Restrictions

Users who opt for local accounts may not have immediate access to certain features that require a Microsoft account, such as OneDrive integration, Microsoft Store access, and synchronization of settings across devices. However, these features can be enabled later by signing in with a Microsoft account if desired.

Potential Deprecation

As Microsoft continues to evolve the Windows operating system, there is a possibility that methods like start ms-cxh:localonly may be deprecated in future updates. Users and administrators should stay informed about changes to the setup process and be prepared to adapt their deployment strategies accordingly.

Conclusion

The start ms-cxh:localonly command opens local-account setup during OOBE. It works on current Windows 11 builds, but Microsoft changes the setup screens often. Confirm it on your build before depending on it.

Sources


MU
Madhusudan Upadhyay

ICT Support Executive · 11+ yrs · M365 · Intune · Windows Server & AD · Kathmandu. Work with me →

📬 New posts via RSS · /uses

Related reading