0%
Adding a Domain Controller to Active Directory with PowerShell

Adding a Domain Controller to Active Directory with PowerShell

This guide explains how to add a new domain controller to an existing Active Directory domain. Each parameter is explained so you can adapt the configuration to your needs.

10-15 min

Adding a Domain Controller to Active Directory with PowerShell

This guide explains how to add a new domain controller to an existing Active Directory domain. Each parameter is explained so you can adapt the configuration to your needs.

Installing the Active Directory Domain Services (AD DS) Role

To begin, install the AD DS role on the server, as it is required to configure a domain controller.

# Installe le rôle Active Directory Domain Services et les outils de gestion associés
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
  • Purpose: Install the Active Directory Domain Services (AD DS) role and its management tools.
  • Explanation:
    • Install-WindowsFeature: Command used to install a server feature or role.
    • -Name AD-Domain-Services: Installs the AD DS role, which is required for a server to become a domain controller.
    • -IncludeManagementTools: Also installs the AD DS management tools (for example, the RSAT tools for AD DS).

Configuration Variables for Adding the Domain Controller

Define variables to configure the domain controller with the options you want.

Link copied!