Objective
Deploy an Active Directory domain controller on Windows Server 2019/2022 to centralise authentication, Group Policy Objects (GPOs) and network resource management.
Prerequisites
- Windows Server 2019 or 2022 installed
- Static IP address configured
- Hostname defined (e.g. SRV-DC01)
- Administrator account
Full Procedure
Step 1: Static IP configuration
- Control Panel → Network and Internet → Network and Sharing Center
- Change adapter settings
- Right-click on the network adapter → Properties
- Internet Protocol Version 4 (TCP/IPv4) → Properties
- Configuration:
- IP address: 192.168.1.10
- Subnet mask: 255.255.255.0
- Gateway: 192.168.1.1
- Preferred DNS: 127.0.0.1 (itself after DC promotion)
- Alternate DNS: 8.8.8.8
Step 2: Rename the server
- Right-click This PC → Properties
- Change settings → Change
- Computer name: SRV-DC01
- Restart
Step 3: Install the AD DS role
Via Server Manager (GUI)
- Server Manager → Manage → Add Roles and Features
- Installation type: Role-based or feature-based installation
- Select the local server
- Roles: check Active Directory Domain Services
- Add required features
- Next → Next → Install
Via PowerShell (alternative)
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Step 4: Promote to domain controller
- After AD DS installation, click the yellow flag in Server Manager
- Click "Promote this server to a domain controller"
Deployment configuration
- Select: "Add a new forest"
- Root domain name: grp3.local (or your domain)
Domain controller options
- Forest functional level: Windows Server 2016 (or higher)
- Domain functional level: Windows Server 2016
- Capabilities: DNS Server + Global Catalog
- DSRM password: [secure password] → save it!
DSRM (Directory Services Restore Mode): Restore mode in case of AD problems. This password is critical!
DNS options
- Ignore the DNS delegation warning (normal for a new forest)
Additional options
- NetBIOS name: GRP3 (automatically generated)
Paths
- Leave default paths (C:\Windows\NTDS, SYSVOL)
Prerequisites check
- Verify that all checks pass
- Click Install
The server restarts automatically after installation.
Step 5: Post-installation verification
Domain login
Log in with: GRP3\Administrator
AD administration tools
- Active Directory Users and Computers
- Active Directory Sites and Services
- Active Directory Domains and Trusts
- DNS
DNS test
nslookup grp3.local
Should return the DC's IP address
User and OU Management
Creating Organisational Units (OUs)
- Open Active Directory Users and Computers
- Right-click on grp3.local → New → Organizational Unit
- Create the following OUs:
- Users
- Computers
- Groups
- ServiceAccounts
Creating users
- Right-click on OU=Users → New → User
- Fill in the form:
- First name: Jean
- Last name: Dupont
- Login name: jdupont
- Set a password
- Options:
- User must change password at next logon
- Password never expires (not recommended)
Creating groups
- Right-click on OU=Groups → New → Group
- Group name: GRP_Utilisateurs_Nextcloud
- Scope: Global
- Type: Security
Add members to the group:
- Double-click on the group
- Members tab
- Add → Enter "jdupont" → OK
Group Policy Objects (GPOs)
Creating a simple GPO
- Open Group Policy Management
- Expand Forest → Domains → grp3.local
- Right-click on Group Policy Objects → New
- Name: GPO_Securite_Postes
Configuring the GPO
- Right-click on the GPO → Edit
- Example settings:
- Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Password Policy
- Minimum length: 12 characters
- Maximum password age: 90 days
- Complexity: Enabled
- Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Password Policy
Linking the GPO
- Right-click on OU=Computers → Link an Existing GPO
- Select GPO_Securite_Postes
Immediate GPO application
On a client workstation:
gpupdate /force
Joining a workstation to the domain
From a Windows 10/11 workstation
- Configure the workstation DNS: 192.168.1.10 (DC IP)
- Right-click This PC → Properties
- Advanced system settings → Computer Name → Change
- Member of: Domain
- Enter: grp3.local
- Enter domain administrator credentials
- Restart
Domain login
On the login screen, select Other user and log in with:
- Username: jdupont
- Password: [password set in AD]
- Sign in to: GRP3
Key Points for the BTS Oral
- Active Directory: Microsoft LDAP directory for centralised management
- DC (Domain Controller): server hosting the AD directory
- Forest → Domain → OU → Objects: AD hierarchy
- DSRM: restore mode in case of AD corruption
- GPO: group policies for centralised configuration
- DNS: essential for AD (SRV records, _ldap, _kerberos)
- Kerberos: authentication protocol used by AD
- LDAP: port 389 (LDAPS 636)
- Functional level: determines available features