Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How To Remove Computer From Domain

How To Remove Computer From Domain

Abhishek SilwalBy Abhishek SilwalMarch 25, 2022
remove-computer-from-domain

Have you ever wanted to operate an old PC but found it connected to a work domain? Or maybe you tried to remove your computer from a non-existent domain but were unable to.

Well, there’s no need to look any further. In this article, we will explain in detail the methods you can use to disconnect your computer from a domain. 

Table of Contents

  • Remove Your Computer From a Domain in Windows
    • Using System Properties
    • Through Settings
    • With Windows PowerShell
  • Remove a Computer From Your Domain in Windows
    • Through Active Directory Users and Computers
    • With Command Prompt
  • Remove Your Computer From a Domain in Mac
  • Related Questions
    • How to disconnect my computer if I can’t remember domain login credentials?
    • Can I convert the domain account to a local account?
    • Is it possible to remove the Domain group policy from my system?

Remove Your Computer From a Domain in Windows

There are a few ways to remove your computer from a domain. Unjoining from a domain also deletes the domain account in your computer. Also, please keep in mind that you need the login credentials of your current user to disconnect your computer from a domain.

Mentioned below are some methods to remove your computer from a domain in Windows.

Using System Properties

This is the easiest way to remove your computer from a domain. In this process, you change the membership of your computer from a domain to a workgroup.

Please follow the steps below to change the membership:

  1. Press Windows + R to launch the run command. Type sysdm.cpl and press Enter. It will open the System Properties.
  2. In the Computer Name tab, click on Change.
  3. Check the Workgroup radio button and enter a workgroup name.
    change-domain-to-workgroup-system-properties
  4. Click Ok. Then, confirm with Ok for the prompt.

Through Settings

Your PC Settings app also provides a convenient interface to disconnect from a domain. To remove your computer from a domain through Settings,

  1. Press Windows + I to launch the Settings app.
  2. Click on Accounts.
  3. Locate and select Access work or school.
  4. Click on the domain you are connected to and select Disconnect.
    disconnect-domain-settings-1
  5. Confirm with Yes. Then, select Disconnect from the next dialog box.

After you disconnect from the domain, your system will set your computer to be a member of the workgroup called WORKGROUP.

With Windows PowerShell

It is also possible to use the command-line interface for removing your computer from a domain. You might prefer this method if you find navigating through the GUI troublesome.

Here’s how you can disconnect from a domain through Windows PowerShell:

  1. Press Windows + X to open the Quick Link menu and select Windows PowerShell (Admin).
  2. Paste the command below and press Enter to execute it:
    Remove-Computer -UnjoinDomaincredential <Domain Name>\Administrator -PassThru -Verbose -Restart -Force
  3. Make sure to replace <Domain Name> with the name of the domain you want to disconnect from.
    powershell-remove-computer-from-domain
  4. Enter the domain credentials and click Ok to proceed.
  5. Next, type Y and press Enter to confirm.
  6. Restart your PC.

Remove a Computer From Your Domain in Windows

Here are some methods to remove a connected computer from your Windows domain.

Note: You need to be signed in to the domain controller as administrator to remove any joined computers.

Through Active Directory Users and Computers

This is the normal method to remove a connected computer from your domain. Here’s how you can use the Active Directory Users and Computers to remove a computer:

  1. Log in to your Domain Controller as the Domain administrator.
  2. Go to Server Manager > Tools > Active Directory Users and Computers.
  3. Expand your domain and select Computers.
  4. Right-click on the computer you want to remove and choose Delete.
    remove-computer-domain-controller
  5. Confirm with Yes.

With Command Prompt

You may also use the command-line interface to remove a computer from the domain. You can use the Command Prompt from the domain controller to do so. Here are the steps for this method:

  1. Open the elevated Command Prompt. You can do so by searching for it on the search bar and running it as administrator.
  2. Enter the command below while replacing <computer name> with the name of the computer you want to remove:
    net computer \\<computer name> /del
  3. To remove a computer from the Active Directory domain, enter the command:
    netdom remove <computer> /d:<domain> /reboot. Please ensure that you type the appropriate replacements for <computer> and <domain>.

Remove Your Computer From a Domain in Mac

You can use the Directory Utility tool to disconnect your computer from an Active Directory domain in Mac. Please perform the following steps to do so:

  1. Press Command + Spacebar to open the Spotlight Search.
  2. Search for and open Directory Utility.
  3. Go to the Services tab.
  4. Click on the lock icon and enter your password.
  5. Double-click on Active Directory and click Unbind.
  6. Enter your password again. 
  7. Click Ok to apply the changes.

Related Questions

How to disconnect my computer if I can’t remember domain login credentials?

You don’t really need the domain account credentials to remove your computer from a domain. The authentication provided by your local administrator user should be enough. Please use those when your system asks for passwords while applying the methods above.

Can I convert the domain account to a local account?

Microsoft used to provide the Windows Easy Transfer tool, which you could use to convert domain accounts to local ones and vice versa. However, Windows 10+ no longer include this feature. You’ll have to use a third-party app if you want to convert your account.

But, it is possible to copy files and user registry settings to a new local account. Then, deleting your domain user will provide a similar result to converting the account. Follow the steps below to execute this method:

  1. Create a local account.
  2. Then, restart your PC and log in as a different local administrator.
  3. Open Run and enter systempropertiesadvanced.
  4. Look for User Profiles and click on the Settings button under it.
  5. Click on the domain user and select Copy To.
  6. Choose Browse and navigate to the profile of the new local user. Then, click Ok.
  7. Now, select Change. Then, click on Advanced.
  8. Click Find Now to see a list of users. Select the new user and click Ok. 
  9. Click Ok on all windows to close them while applying the changes.

Is it possible to remove the Domain group policy from my system?

Domain group policies can force many restrictions on your computer. However, it is possible to remove such restrictions using the Registry Editor. Here’s how you can do so:

  1. Enter regedit on Run.
  2. Navigate to the following keys and delete them:
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
    • Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft
    • Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects
    • Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
Warning: Manipulating registry entries can break your computer. So we recommend making a system restore point before deleting those keys.
how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

computer suddenly slow

Why is My Computer Suddenly Slow? 11 Ways to Fix It

March 31, 2023
scheduled task reboot

How to Create a Reboot Scheduled Task in Windows

March 31, 2023
slow computer startup

14 Ways to Fix Slow Computer Startup

March 26, 2023
boot loop

14 Ways to Fix Windows Boot Loop

March 19, 2023
how to change windows startup sound

How to Change Windows Startup Sound

March 17, 2023
scan disk windows 10

How to Scan Disk Windows

March 16, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what-does-collate-mean-on-a-printer

What Does Collate Mean on a Printer?

March 31, 2023
usb-vs-pcie-wifi

USB Vs PCIe Wi-Fi—Which One is Better?

March 31, 2023
how often to replace laptop

How Often Should You Replace a Laptop

March 29, 2023
You may also like
computer suddenly slow

Why is My Computer Suddenly Slow? 11 Ways to Fix It

March 31, 2023
HTTP-Error-431

How to Fix HTTP Error 431

March 31, 2023
scheduled task reboot

How to Create a Reboot Scheduled Task in Windows

March 31, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.