sodcalculator

10 Tech How-To

How to Disconnect Windows 10 from Azure AD

Guide 10-48000 · Updated · Step by step

This guide walks you through removing a Windows 10 device from an Azure Active Directory (Azure AD) domain, returning it to a local account setup. You’ll need administrator rights on the PC and, in some cases, the Azure AD credentials for the device’s current user. The process takes about 10 minutes and does not affect your personal files, but it will stop syncing settings and policies from your organization.

What You’ll Need

  • Administrator access to the Windows 10 device (your user account must be in the local Administrators group).
  • The password for the local administrator account (if you have one) or the Azure AD account password.
  • If the device is enrolled in mobile device management (MDM), you may need to contact your IT admin to remove it from management first.

Step-by-Step

  1. Sign in with an administrator account. Use the account that has admin rights on the PC. If you’re currently signed in with a standard user, switch to the admin account before proceeding.
  2. Open Settings. Click the Start button (Windows logo) and then the gear icon, or press Win + I.
  3. Navigate to Accounts. In Settings, click Accounts (your account picture, email, sync, work, family).
  4. Go to “Access work or school”. In the left sidebar, click Access work or school. You’ll see a list of connected accounts, usually showing your organization’s domain (e.g., “contoso.com”).
  5. Select the Azure AD account. Click on the entry that shows your work or school email address. It should be under the “Connected to yourdomain” section.
  6. Click “Disconnect”. A button labeled Disconnect will appear. Click it. A confirmation dialog will pop up warning that you’ll lose access to organizational resources and that some settings might be affected.
  7. Confirm the action. In the dialog, click Yes to confirm that you want to disconnect. Windows will then prompt you to enter the password for the Azure AD account or the local administrator account, depending on your setup.
  8. Enter credentials. Type the password for the account you’re using (the admin account) and click OK. If you are signed in with an Azure AD account, you’ll need that password. If you’re using a local admin, use that password.
  9. Wait for the process to complete. Windows will remove the device from Azure AD and may reboot automatically. If not, restart your PC manually.
  10. Sign in with a local account. After reboot, you’ll see the sign-in screen. If you already had a local account, use that. If not, you’ll need to create one by clicking “I don’t have this person’s sign-in info” and then “Add a user”.
  11. Verify disconnection. Go back to Settings > Accounts > Access work or school. The Azure AD entry should be gone. If it still appears, the device wasn’t fully removed—see Troubleshooting below.

Common Mistakes

  • Not having admin rights: The Disconnect button is grayed out if you’re not an administrator. Always sign in with an admin account first.
  • Clicking “Info” instead of “Disconnect”: Some users click the “Info” button (which shows account details) and miss the Disconnect button that appears below it. Look for the blue “Disconnect” link.
  • Ignoring the warning about organizational resources: Disconnecting removes access to company email, Wi-Fi profiles, VPN settings, and apps that rely on Azure AD. Make sure you have local alternatives ready.
  • Not removing MDM enrollment first: If the device is enrolled in Intune or another MDM, the Disconnect option may be hidden or fail. Contact your IT admin to remove the device from management before trying again.
  • Using the wrong password: The password prompt asks for the password of the account you’re currently signed in with. If you’re using a Microsoft account (e.g., @outlook.com), use that password, not the Azure AD one.

Tips

  • Back up your data: Although disconnecting doesn’t delete files, it’s wise to back up important documents to an external drive or cloud storage before making changes.
  • Create a local admin account first: If you don’t have a local admin account, create one before disconnecting. Go to Settings > Accounts > Family & other users, then “Add someone else to this PC” and choose “I don’t have this person’s sign-in info”. This ensures you can still manage the PC after disconnection.
  • Use the “Reset this PC” option as a last resort: If disconnection fails repeatedly, you can reset the PC to factory settings, but this removes all your apps and files. Use this only if you have backups.
  • Check with your IT department: If the device is company-owned, disconnecting may violate policy. Always get approval first.
  • Keep your Microsoft account credentials handy: If you signed in with a Microsoft account (not Azure AD), you’ll need that password after disconnection.

Troubleshooting

  • “Disconnect” button is grayed out: This means you’re not an administrator. Sign out and sign in with an admin account. If you don’t have one, you’ll need to use the built-in Administrator account (enable it via Command Prompt as admin: net user administrator /active:yes).
  • Error “This action cannot be performed because this device is enrolled in MDM”: Your organization manages the device via Intune or similar. You must contact your IT admin to remove the device from MDM. They can do this from the Azure portal or Intune console.
  • Password prompt fails: Double-check that you’re entering the password for the account you’re signed in with. If you’re using a PIN, you’ll need to switch to password by clicking “Sign-in options” and choosing the key icon.
  • Device still shows as connected after reboot: Sometimes the removal doesn’t fully complete. Try the steps again. If it persists, open Command Prompt as administrator and run: dsregcmd /leave. This forces the device to leave Azure AD. Then restart.
  • Lost access to local account: If you don’t have a local account password, you may be locked out. Use the “I forgot my password” option on the sign-in screen if you have a Microsoft account linked. Otherwise, you may need to use a password reset disk or reinstall Windows.

Frequently Asked Questions

Q: Will disconnecting from Azure AD delete my files?
A: No, your personal files (documents, pictures, etc.) remain on the device. Only the connection to your organization’s domain is removed.

Q: Can I reconnect to Azure AD later?
A: Yes, you can go to Settings > Accounts > Access work or school and click “Connect” to join the device to Azure AD again, provided you have the necessary credentials and permissions.

Q: What happens to my Microsoft Store apps?
A: Apps that require an Azure AD account to run may stop working or ask for a local sign-in. Most apps will continue to work with a local account, but some enterprise apps might be restricted.

Q: Do I need to contact my IT admin before disconnecting?
A: If the device is company-owned or enrolled in MDM, yes. Otherwise, you can do it yourself, but be aware that your organization may still have policies that affect the device.

Q: Will my BitLocker recovery key be affected?
A: Disconnecting from Azure AD may change how BitLocker recovery keys are stored. If BitLocker is enabled, it’s recommended to back up your recovery key to your Microsoft account or a USB drive before proceeding.

Q: Can I disconnect without admin rights?
A: No, you must be signed in with an account that has administrator privileges. If you’re not, you’ll need to ask an admin to do it for you.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →