Unjoin a Windows 10 Computer or a Windows Server 2019 Server From a Domain in GUI and PowerShell
In our previous blog we joined a Windows Server to an already existing domain:
https://eyeteahero.blogspot.com/2019/05/joining-windows-server-2019-server-to.html
This blog is good in case you need to unjoin a PC or a Server from your domain. Maybe the employee no longer works there, you are decommissioning an old laptop that is being disposed or a server is EOL and being replaced. You can unjoin a Windows Server 2019 Server from a domain in the GUI and PowerShell
https://eyeteahero.blogspot.com/2019/05/joining-windows-server-2019-server-to.html
This blog is good in case you need to unjoin a PC or a Server from your domain. Maybe the employee no longer works there, you are decommissioning an old laptop that is being disposed or a server is EOL and being replaced. You can unjoin a Windows Server 2019 Server from a domain in the GUI and PowerShell
GUI
Click the Workgroup radio button and type any value then click OK
Click OK
Click OK
Click Close
PowerShell
Type
- remove-computer -credential domain\domainadminid -passthru -verbose; restart-computer
Type credentials with permission to leave the domain and click OK
Type Y and hit enter to continue. The server reboots and is no longer joined to the domain

Join us in our next blog where we will be installing another Windows server but this time choosing the Server Core option!
https://eyeteahero.blogspot.com/2019/05/installing-windows-server-2019-server.html