Windows 11 allows users to connect work or school accounts to access organizational resources such as Microsoft 365 apps, OneDrive, email, and company-managed devices. However, some users encounter issues where they are unable to sign out of or remove a work or school account from their PC. In some cases, the Disconnect button may be grayed out, missing entirely, or display an error when clicked.
This issue is often caused by organizational policies, device management settings, Microsoft Entra ID (formerly Azure AD) enrollment, synchronization problems, or account permissions. If your device is managed by an organization, certain restrictions may prevent you from removing the account without administrator approval.
Fortunately, there are several ways to troubleshoot and fix this problem in Windows 11. In this guide, we will walk you through all the effective solutions step by step.
How to Fix Cannot Log Out of Work or School Account in Windows 11
1. Disconnect the Account from Settings
The easiest way to remove a work or school account is through Windows Settings.
- Press Windows + I to open Settings.
- Select Accounts from the left pane.
- Click Access work or school.
- Select the connected work or school account.
- Click Disconnect.
- Confirm the action when prompted.
- Restart your computer.
After rebooting, check whether the account has been removed successfully.
If the Disconnect option is unavailable, proceed to the next method.
2. Remove the Account from Email & Accounts
Sometimes the account is also linked through Windows account settings.
- Open Settings using Windows + I.
- Navigate to Accounts > Email & accounts.
- Under Accounts used by other apps, locate the work or school account.
- Select the account.
- Click Remove.
- Confirm the action.
- Restart your PC.
This method often works when the account remains connected to Microsoft apps.
3. Disconnect the Device from Microsoft Entra ID
If the device is joined to Microsoft Entra ID, you may need to leave the organization first.
- Open Settings.
- Go to Accounts > Access work or school.
- Select the connected account.
- Click Info.
- Look for an option such as Disconnect or Leave organization.
- Follow the on-screen instructions.
- Restart your computer.
Keep in mind that leaving an organization-managed device may remove access to company resources.
4. Unenroll the Device from Mobile Device Management (MDM)
Some organizations use device management tools such as Microsoft Intune to control devices.
- Open Settings.
- Go to Accounts > Access work or school.
- Select the managed account.
- Click Info.
- Scroll down and choose Unenroll device if available.
- Confirm the action.
- Restart your PC.
After unenrolling, try disconnecting the account again.
5. Remove the Account Using Control Panel
Older account settings may still exist in Control Panel.
- Press Windows + R.
- Type control and press Enter.
- Navigate to User Accounts > Credential Manager.
- Open Windows Credentials.
- Locate entries related to your work or school account.
- Click each entry and select Remove.
- Restart your computer.
Windows will recreate the credentials if needed after you sign in again.
6. Disconnect the Account Using Command Prompt
You can use command-line tools to verify the device’s join status.
- Open Command Prompt as administrator.
- Run the following command:
dsregcmd /status
- Review the results under:
- AzureAdJoined
- WorkplaceJoined
If the device is joined to an organization, you may need administrator permission to remove it.
You can then try leaving the organization through Settings.
7. Remove the Account from Microsoft Apps
Microsoft apps such as Office may continue using the account even after it is disconnected.
- Open any Microsoft Office application.
- Click File > Account.
- Under Connected Services, locate the work or school account.
- Click Sign out or Remove.
- Close the application.
- Restart your computer.
This ensures the account is removed from Microsoft services.
8. Check for Group Policy Restrictions
Organization-managed devices may use policies that prevent account removal.
- Press Windows + R.
- Type gpedit.msc and press Enter.
- Navigate to:
Computer Configuration > Administrative Templates > System > User Profiles
- Review any policies related to account management.
- Disable restrictive policies if appropriate.
- Restart your PC.
Note that Group Policy Editor is not available in Windows 11 Home.
9. Create a New Local Administrator Account
If your current profile is tied to the work account, switching to a local administrator account may help.
- Open Settings.
- Go to Accounts > Other users.
- Click Add account.
- Select I don’t have this person’s sign-in information.
- Choose Add a user without a Microsoft account.
- Create a new local account.
- Change the account type to Administrator.
- Sign in with the new account.
- Attempt to remove the work or school account again.
10. Contact Your Organization’s IT Administrator
If the device is owned or managed by an organization, local changes may be blocked by company policies.
In such cases:
- Contact your IT administrator.
- Request device removal from Microsoft Entra ID or Intune.
- Verify whether organizational restrictions are preventing account removal.
This is often necessary for company-owned devices.
Conclusion
The inability to log out of a work or school account in Windows 11 is usually caused by device management policies, Microsoft Entra ID enrollment, cached credentials, or account permissions. In most cases, disconnecting the account from Settings, removing stored credentials, or unenrolling the device from management services resolves the issue.
If the problem persists, the device may still be managed by an organization, requiring assistance from an IT administrator. Before removing a work or school account, make sure you understand the impact on company resources, applications, and data access.