Skip to content
WiseChecker
  • Home
  • Quizzes
    • Ability
    • Knowledge
    • Personality
  • Games
  • Tools
  • About Us
Windows 11 Cannot Remove Work Account From Settings: Fix
🔍 WiseChecker

Windows 11 Cannot Remove Work Account From Settings: Fix

2026年6月8日 by wisechecker

You are trying to remove a work or school account from Windows 11 Settings, but the Remove button is grayed out or missing entirely. This typically happens because the account is linked to an organization that manages your device through policies or a Microsoft Entra ID formerly known as Azure Active Directory join. The system blocks account removal from the Settings interface to prevent accidental disconnection from corporate management. This article explains why the Remove option is unavailable and provides three reliable methods to fully disconnect a work account from your Windows 11 device.

Key Takeaways: Removing a Work Account That Won’t Delete in Windows 11

  • Settings > Accounts > Access work or school > Disconnect: The primary method to unlink a work account when the Remove button is available
  • Settings > Accounts > Access work or school > Export your management log files: A diagnostic step that reveals which policies block removal and allows you to find the correct disconnection path
  • Command: dsregcmd /leave (run as Administrator): Forcefully disconnects the device from Microsoft Entra ID when the Settings interface fails to remove the account

ADVERTISEMENT

Why Windows 11 Blocks Removal of a Work Account in Settings

Windows 11 treats work accounts differently from personal Microsoft accounts. A work account is usually connected to your organization’s Microsoft Entra ID tenant. When your device is joined to Microsoft Entra ID, the operating system applies management policies from your company. These policies can restrict account removal to prevent unauthorized disconnection from corporate security and compliance controls.

The Remove button in Settings > Accounts > Access work or school becomes grayed out or hidden when any of the following conditions exist:

  • The device is Microsoft Entra ID joined, meaning the entire machine is managed by your organization.
  • An MDM Mobile Device Management policy enforces account binding.
  • The account is the primary sign-in method for the device, and Windows requires an alternative local or Microsoft account before allowing removal.
  • The work account is tied to company data or apps that prevent disconnection until those resources are removed first.

Understanding which scenario applies to your device is the first step toward a successful removal. The methods below address each situation.

Method 1: Disconnect the Work Account Through Settings

This method works when the Remove button is visible but grayed out, or when you need to remove a work account that is not the primary sign-in account.

  1. Open Settings and navigate to Access work or school
    Press Win + I to open Settings. Go to Accounts > Access work or school. You will see the work account listed under the section labeled with your organization name.
  2. Click the account and select Disconnect
    Click on the work account tile. A Disconnect button should appear below the account name. If the button is grayed out, proceed to Method 2. If it is active, click Disconnect.
  3. Confirm the disconnection
    A dialog box warns that you will lose access to organizational resources. Check the box that says Turn off automatic sign-in for all apps and websites that use this account if you want to prevent future automatic connections. Click Disconnect.
  4. Restart your device
    After disconnection, restart Windows 11 to fully apply the changes. The work account should no longer appear in Access work or school.

If the Disconnect button is still grayed out after restarting, use the next method.

ADVERTISEMENT

Method 2: Remove the Work Account Using the Command Line

When Settings refuses to remove the account, the dsregcmd command can force a disconnection from Microsoft Entra ID. This method requires administrator privileges.

  1. Open Command Prompt as Administrator
    Press Win + R, type cmd, then press Ctrl + Shift + Enter. Click Yes in the User Account Control prompt.
  2. Run the dsregcmd command to leave the organization
    Type the following command and press Enter:
    dsregcmd /leave
    Wait for the process to complete. A message saying Left workplace will appear if successful.
  3. Verify the disconnection
    Type dsregcmd /status and press Enter. Look for the line AzureAdJoined: NO. This confirms the device is no longer joined to Microsoft Entra ID.
  4. Restart your device
    Restart Windows 11. Open Settings > Accounts > Access work or school. The work account should now be gone. If it remains, repeat the command and restart again.

Note: Running dsregcmd /leave removes all organizational management policies from the device. You may lose access to company resources such as email, VPN, and internal apps. Contact your IT department before using this method if the device is company-owned.

Method 3: Remove the Work Account via Registry Editor

Use this method only if the command line approach fails or if you need to remove a work account that is not the primary join type. Editing the registry incorrectly can cause system instability. Back up the registry before proceeding.

  1. Open Registry Editor as Administrator
    Press Win + R, type regedit, then press Ctrl + Shift + Enter. Click Yes in the User Account Control prompt.
  2. Navigate to the Work Account key
    Go to the following path:
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\WorkplaceJoin
    Look for a subkey with the name of your organization or a GUID. Right-click the subkey and select Delete. Confirm the deletion.
  3. Remove the account token from Credential Manager
    Press Win + R, type control, and press Enter to open Control Panel. Go to User Accounts > Credential Manager > Windows Credentials. Scroll to the Generic Credentials section. Look for any entries containing your organization name or the email address of the work account. Click the arrow to expand each entry, then click Remove. Confirm each removal.
  4. Restart your device
    Restart Windows 11. Open Settings > Accounts > Access work or school. The work account should no longer appear.

If the registry key does not exist, the account may be stored differently. Use Method 2 instead.

What to Do If the Work Account Still Appears After Removal

Work account reappears after restart

Your device is likely still enrolled in MDM. Open Settings > Accounts > Access work or school. Click the work account and look for an Info button. Click Info and then click Unenroll. If Unenroll is unavailable, contact your IT department to remove the device from the MDM server.

Remove button is still grayed out after dsregcmd /leave

The account might be cached in the Windows Credential Manager. Follow the Credential Manager steps in Method 3 to remove all cached entries related to the organization. Restart again and check Settings.

Error message: Your organization requires you to keep this account

This means your device is enrolled in a compliance policy that mandates the account. You cannot remove the account without IT assistance. Contact your IT department and request device unenrollment from Microsoft Entra ID and MDM.

Work Account Removal Methods: Settings vs Command Line vs Registry

Item Settings Disconnect dsregcmd /leave Registry Editor
Required permissions Standard user Administrator Administrator
Removes Microsoft Entra ID join No Yes No
Removes MDM enrollment No Yes No
Removes cached credentials No No Yes
Risk level Low Medium High
Best for Non-joined accounts All joined devices Stubborn cached accounts

You can now remove a work account from Windows 11 Settings even when the Remove button is grayed out. Start with the Settings Disconnect method. If that fails, use the dsregcmd /leave command to force disconnection from Microsoft Entra ID. For cached accounts that persist, clear credentials from Credential Manager. Always back up your registry before editing it. Contact your IT department before disconnecting a company-owned device to avoid losing access to corporate resources.

ADVERTISEMENT

▶️
Take a Break — Higher or Lower?
Most-Viewed YouTube Game
Baby Shark broke 14 billion. What else?
Play Now ▶ All 50+ Games
ABOUT THE EDITORIAL TEAM
WiseChecker Editorial Team
Operated by Shadowcity LLC, Tokyo

WiseChecker is an international reference for everyday problem solving, IT troubleshooting, and life decision frameworks. Our editorial approach is evidence-based, regularly updated, and independent from corporate interests.

Meet the editorial team →
← Back to WiseChecker HomeMore in Windows & PC

🔍 Recommended for You

Bluesky Adult Content Labels: How They Affect VisibilityBluesky allows users to label posts and images as adult content. If you post sensitive material without the…How to Disable Outlook Add-Ins to Fix Startup DelaysOutlook may take a long time to open or seem stuck on the splash screen. This slowdown is…
Categories Windows & PC Tags Windows, Windows Account, windows-settings
Windows 11 Update Stuck at Pending Restart Forever: Fix
Windows 11 Network Drive Opens Slowly in File Explorer: Fix

Quick Links

  • About Us
  • Privacy Policy
  • Terms of Use
  • WiseChecker Sitemap
  • Contact Us
© 2026 WiseChecker.com. All rights reserved.