How to join or remove a Domain from Windows 11/10
There are two aspects of this guide. They are:
1] Join a Windows computer to a Domain
Connect your system to the network associated with the server (i.e your system and the server need to be on the same network). Click on the Start button and then on the gear-like symbol to open the Settings App. Navigate to the following path: Accounts > Access work or school. Select Connect. A new dialog box will pop.
Select Join this device to a local Active Directory domain. You will now be asked to enter the Domain name in a new pop-up.
Then you will be asked to enter the Username and Password for your domain account. Select your Account type. And when you proceed, just reboot your computer to have your domain account created.
2] Remove a Windows computer from a Domain
Open the Windows Settings App. Navigate to the following path: Accounts > Access work and school. Select the account that you wish to remove from the DOMAIN. Click on Disconnect. You will get a prompt that says-
Select Yes. It will now give you a Disconnect from the organization prompt. Select Disconnect. When prompted, select Restart now to reboot your computer and complete the domain removing process. I hope this guide helped you.