What you will learn in this TP
- Install AD DS and promote a domain controller
- Create OUs, users and groups with PowerShell
- Link a GPO and check that it applies
Introduction #
What you will learn in this section
- Install AD DS and promote a domain controller
- Create OUs, users and groups with PowerShell
- Link a GPO and check that it applies
Context. A 30-person company wants to centralize its accounts. You set up the lab domain corp.lab and prepare for users to arrive.
Prerequisites: a Windows Server 2025 VM with a static IP (a second Windows VM to test domain join is a plus) · Estimated duration: 60 min
Thecorp.lab domain, its OUs, 5 users, AGDLP groups and a GPO checked with gpresult.Setup #
Guided steps, with their solution.
1. Prepare the server
Why? A domain controller needs its final name and a static IP before promotion.
Rename the serverSRV-DC01, give it a static IP and point its DNS to itself, then restart.2. Create the forest
Why? Install-ADDSForest installs AD DS and integrated DNS in one command.
Install the AD DS role then create thecorp.labforest (NetBIOSCORP). The server restarts.3. Structure with OUs
Why? OUs are for delegation and GPO targeting, not for copying the org chart.
CreateOU=CORPwith the sub-OUsUtilisateurs,Groupes,PostesandServeurs.4. Import users
Why? Bulk creation from a CSV avoids typing mistakes.
Create a CSV of 5 people (first name, last name, login, department) and import them into the Utilisateurs OU, with password change at first logon.5. AGDLP groups
Why? Rights go to resource groups, which contain business groups.
Create global groupsGG_Compta,GG_RH,GG_ITfilled by department, and the domain local groupDL_Partage_Compta_McontainingGG_Compta.6. A first GPO
Why? A GPO linked to an OU configures every machine it contains.
Create the GPOSEC - Verrouillage écran(password-protected screen saver after 10 minutes), link it to the Utilisateurs OU, then check withgpresultby logging on as a test user.
Difficulty level : ●●○○○ (2/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Active Directory Domain Services and DNS
Understand and deploy Active Directory: forest, domains, organizational units, domain controllers...
Group Policy (GPO): configuring the estate from Active Directory
Design and troubleshoot Group Policy: computer and user configuration, OU linking, LSDOU order, i...
Users, groups, NTFS permissions and SMB shares
Manage local accounts and groups, understand UAC, apply NTFS permissions with inheritance, create...
Windows administration best practices
The production checklist for Windows and Windows Server: installation, identity and Active Direct...
Backup, Hyper-V and Windows troubleshooting
Back up and restore with Windows Server Backup (including system state and Active Directory), vir...
Windows networking: IP, DNS, DHCP, firewall and remote access
Configure and troubleshoot Windows networking with PowerShell, deploy a DHCP server, master Windo...
Users, groups, sudo and permissions on Linux
Manage Linux accounts (useradd, usermod, passwd, chage), groups, sudo and visudo, rwx and octal p...
Linux system architecture: kernel, boot and directory tree
Understand how a Linux server works: kernel and user space, the UEFI, GRUB, initramfs and systemd...
Azure storage: storage accounts, Blob, Files, disks and redundancy
Store data on Azure: storage accounts, Blob (hot, cool, archive tiers, lifecycle), Files, Queue a...