Join a computer to an Active Directory domain

To join a computer to a domain you have several possibilities:

  • By graphical interface
  • Command Line (CMD, PowerShell)

Prerequisites

  • be an administrator on the local workstation.
  • have an account on the domain (preferably administrator).
  • at the network configuration level, have dns a domain controller.

By the graphical interface

1. Open Windows Explorer.

2. Right-click on This PC and press Properties 1.

3. Click Change settings.

4. Click Edit 1.
join domain computer

5. Enter the domain name 1 and click OK 2.
join domain computer

6. Enter the credentials of a domain administrator account and validate.

7. Validate the Welcome message in the field.

8. Restart your computer.

In PowerShell

1. Open the PowerShell Command Prompt as Administrator

2. Enter the following line adapting to your situation

add-computer –domainname mondomain.local -Credential MONDOMAINE\administrateur -restart –force

3. Validate your order with [Enter].

4. Enter the account password in the login window.

5. The computer will join the domain and restart automatically.



Related Posts


Enable Windows Active Directory Recycle Bin 2012/2016/2019
Introduction The Active Directory Recycle Bin is a feature that came with Windows 2008R2, which is disabled by default. To activate the recycle bin, the domain and drill level must be at least 2008R2. Once the trash is activated, it is not possible t

Active directory: Delete a child domain
In the article Active directory: setting up a child domain where I explain how to configure a child domain in an Active Directory environment, I will explain here how to delete a child domain. As a reminder, when setting up the child domain, a trust

Active Directory: Multi Site, Subnet, and Replication Configuration
Presentation In this tutorial, we will approach the notions of Active Directory sites as well as subnets. Active Directory sites can optimize management in multi-site / network infrastructures by: Management of replication between domain controllers.

Leave a Comment