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
Windows and Windows Server: versions, editions and architecture
Discover the Windows ecosystem for administrators: Windows 11 and Windows Server 2025, editions a...
PowerShell for Windows administrators
Master PowerShell to administer Windows: cmdlets and help, object pipeline, filters and formats, ...
Windows storage: disks, volumes, Storage Spaces and RAID
Manage storage on Windows: GPT and MBR, partitions and volumes with PowerShell, NTFS and ReFS, St...
Services, scheduled tasks, event logs and performance
Control Windows services and their recovery, automate with Task Scheduler, use event logs with Ge...
Windows updates and security: WSUS, Defender, BitLocker, LAPS and hardening
Maintain and secure a Windows estate: update strategy (Windows Update, WSUS, Azure Update Manager...
Ansible: structuring your code with roles
Create, organize and reuse Ansible roles: directory layout, defaults, tasks, handlers, templates,...
Google Cloud networking: global VPC, subnets, firewall and load balancing
Design networking on Google Cloud: global VPC and regional subnets, firewall rules based on tags ...
HAProxy in Kubernetes: the high-performance Ingress Controller
Discover in depth how HAProxy integrates with Kubernetes: direct-to-pod architecture, hot update ...
Networking on Linux: configuration, diagnosis, firewall and SSH
Configure and troubleshoot Linux networking: ip, ss, netplan and NetworkManager, DNS, layered dia...