0%
Installing Active Directory with PowerShell

Installing Active Directory with PowerShell

This guide shows you how to install Active Directory Domain Services (AD DS) using PowerShell. The steps include verifying the modules...

10-15 min

Installing Active Directory with PowerShell

This guide shows you how to install Active Directory Domain Services (AD DS) using PowerShell. The steps include verifying the required modules and installing the AD DS feature.

Prerequisites

Make sure you are running PowerShell as an administrator, because installing Active Directory requires elevated privileges.


1. Check the Availability of the Active Directory Modules

# Vérifie si le module ActiveDirectory est installé et disponible
Get-Module -Name ActiveDirectory -ListAvailable

# Vérifie si le module ADDSDeployment est installé et disponible
Get-Module -Name ADDSDeployment -ListAvailable

# Vérifie si le module GroupPolicy est installé et disponible
Get-Module -Name GroupPolicy -ListAvailable
  • Purpose: These commands check the availability of the modules needed to manage Active Directory, deploy AD DS, and configure Group Policy.
  • Explanation: The -ListAvailable parameter shows all available modules without immediately importing them into the PowerShell session.

Link copied!