Home life · Updated
How to Remove a Computer From a Domain (Windows)
Quick answer To remove a computer from a domain, sign in with a local administrator account, go to Settings > Accounts > Access work or school, disconnect from the domain, and restart when prompted.
What You’ll Need
- Local administrator account credentials (username and password) on the computer
- Administrator password for the computer itself, not the domain admin password
- If you plan to keep using the computer, make sure you know the password for a local account (like the built-in Administrator or a personal local account)
- Backup of any files stored in the user profile folder (Documents, Desktop, Downloads) because domain profiles are often removed during the process
- Network access is not required, but it helps to be connected to the domain controller when you start
Step-by-Step
- Sign in with a local administrator account. If you are currently signed in as a domain user, sign out and sign back in using the local Administrator account or another local account that has admin rights. If you do not have a local admin account, you may need to use the built-in Administrator account, which is often disabled by default.
- Open the right settings page. Press Windows + I to open Settings, then go to Accounts and select Access work or school. The exact wording may differ slightly by Windows version (for example, “Work or school” or “Work access”).
- Find the domain connection. On the Access work or school page, you will see an entry that shows the domain name (like company.local). Click on that entry to expand it, then click Disconnect.
- Confirm the disconnect. Windows will ask you to confirm that you want to disconnect from the domain. Click Yes or Disconnect when prompted. You may also see a warning that you will need to restart the computer.
- Enter local account credentials. When prompted, enter the username and password for a local account on this computer. This is the account you will use to sign in after the removal. If you do not have one, create one now by choosing “Create a local account” or by using the built-in Administrator account.
- Restart the computer. After the disconnect is complete, Windows will ask you to restart. Save any open work and restart. The computer will come back up as a workgroup machine, not a domain member.
- Sign in with the local account. After restart, sign in with the local account you specified. Your old domain profile may still be present, but you will likely need to set up a new local profile. Copy any needed files from the old profile folder under C:\Users before you delete the old profile.
Common Mistakes
- Not having a local admin account ready. If you are only signed in as a domain user and do not know a local admin password, you cannot complete the removal from within Windows. You would need to use a recovery method or ask your IT department.
- Forgetting to back up files. When you disconnect from a domain, Windows often removes the domain user profile. Files on the Desktop, in Documents, and in Downloads may become inaccessible or deleted. Always copy them to an external drive or cloud storage first.
- Choosing the wrong account type. Some users pick a Microsoft account instead of a local account during the disconnect. If you want to stay off the domain entirely, choose a local account, not a Microsoft account (unless you want to link to Microsoft services).
- Skipping the restart. The computer must restart to fully leave the domain. If you do not restart, the machine may still try to contact the domain controller and cause sign-in errors.
- Deleting the old profile too soon. If you delete the domain profile before copying files, you lose everything in that profile. Move files first, then delete.
Tips
- Check BitLocker status. If the drive is encrypted with BitLocker and you are removing the domain, the recovery key may be stored in the domain. Make sure you have the recovery key saved elsewhere before disconnecting, or you may be locked out of the drive after restart.
- Use a wired connection if possible. If the computer is on Wi-Fi and the connection drops mid-process, the removal can fail. A stable network connection to the domain controller helps.
- Write down the local account password. After removal, the domain no longer manages passwords. Keep the local password somewhere safe.
- Consider joining a workgroup. After disconnecting, the computer will automatically be placed in the default WORKGROUP. You can rename the workgroup or join a homegroup if needed, but it is not required.
- Plan for software licenses. Some software is licensed per user or per device through the domain. After removal, certain apps may stop working or require re-activation. Check with the software vendor or your IT department.
Troubleshooting
- “You don’t have permission to disconnect” error. You must be signed in as a local administrator. If you are a domain user with admin rights, that is not enough—Windows requires a local admin account for domain removal. Sign in as the built-in Administrator or another local admin.
- Computer still shows the domain name after restart. Go back to Settings > Accounts > Access work or school and check if the domain entry is still there. If it is, repeat the disconnect process. If it persists, the computer may still have a trust relationship with the domain; you may need to run netdom remove from an elevated command prompt, but that requires domain admin credentials.
- Cannot sign in after removal. If you are prompted for a domain password but the computer is no longer on the domain, sign in with the local account you specified during the disconnect. If that fails, use the built-in Administrator account (if enabled) or boot into Safe Mode.
- Files missing after sign-in. The old domain profile is usually kept in C:\Users\username.DOMAIN for a short time. Navigate to that folder and copy files to your new local profile. If the folder is gone, check the Recycle Bin or restore from backup.
- BitLocker recovery key prompt. If BitLocker asks for a recovery key after restart and you do not have it, the domain was likely storing the key. Contact your IT department to retrieve it before restarting again. Do not attempt to bypass BitLocker.
- “The trust relationship between this workstation and the primary domain failed” appears. This error usually appears before removal if the computer has been offline from the domain for a long time. You can still remove it by following the same steps, but you may need to use the local Administrator account to sign in first.
Frequently Asked Questions
Will I lose my files when I remove the computer from the domain?
Your files in the domain user profile may become inaccessible or be deleted during the removal. Always back up files to an external drive or cloud storage before starting.
Can I remove a computer from a domain without a local administrator account?
No. Windows requires local administrator credentials to disconnect from a domain. If you do not have one, you must enable the built-in Administrator account or contact your IT department.
What is the difference between a domain account and a local account?
A domain account is managed by a central server (the domain controller) and follows company policies. A local account exists only on that one computer and is managed locally.
Do I need to be connected to the internet to remove the domain?
You need to be able to reach the domain controller to complete the removal cleanly. If the computer is offline, the process may fail or take longer.
What happens to the domain user profile after removal?
Windows usually keeps the old profile folder but may mark it as inactive. You can copy files from it, but you cannot sign in with that domain account anymore.
Can I rejoin the domain later?
Yes, you can rejoin the domain at any time by going to Settings > Accounts > Access work or school and selecting “Connect” or “Join a domain.” You will need domain admin credentials to do so.
Related
- How to Stretch Trainers: 7 Easy Methods
- How to Stretch Text in Word: 3 Easy Ways
- How to Stretch Text in Photoshop
Sources: Microsoft Support. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.