Skip to content

Module 01 : Dรฉcouverte Windows Server

Objectifs du Module

Ce module vous introduit ร  l'รฉcosystรจme Windows Server 2022 :

  • Comprendre les รฉditions et licences Windows Server
  • Diffรฉrencier Server Core et Desktop Experience
  • Installer Windows Server en mode Server Core
  • Configurer un serveur avec sconfig et PowerShell
  • Comprendre l'architecture Windows Server

Durรฉe : 6 heures

Niveau : Dรฉbutant


1. Introduction ร  Windows Server

1.1 Qu'est-ce que Windows Server ?

Windows Server est le systรจme d'exploitation serveur de Microsoft, conรงu pour :

  • Hรฉberger des services d'infrastructure (Active Directory, DNS, DHCP)
  • Exรฉcuter des applications mรฉtier
  • Gรฉrer des rรฉseaux d'entreprise
  • Fournir des services de fichiers et d'impression
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  ร‰COSYSTรˆME WINDOWS SERVER                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”‚
โ”‚  โ”‚ Active      โ”‚  โ”‚ DNS/DHCP    โ”‚  โ”‚ File        โ”‚         โ”‚
โ”‚  โ”‚ Directory   โ”‚  โ”‚ Services    โ”‚  โ”‚ Services    โ”‚         โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚
โ”‚                                                              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”‚
โ”‚  โ”‚ IIS Web     โ”‚  โ”‚ Hyper-V     โ”‚  โ”‚ Failover    โ”‚         โ”‚
โ”‚  โ”‚ Server      โ”‚  โ”‚             โ”‚  โ”‚ Clustering  โ”‚         โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚
โ”‚                                                              โ”‚
โ”‚           Tous sur Windows Server 2022                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

1.2 Historique des Versions

Version Annรฉe Fin de Support Nouveautรฉs Clรฉs
Server 2008 R2 2009 2020 PowerShell v2, Hyper-V v2
Server 2012 R2 2013 2023 PowerShell v4, Storage Spaces
Server 2016 2016 2027 Nano Server, Containers
Server 2019 2018 2029 Kubernetes, Storage Migration
Server 2022 2021 2031 Secured-core, SMB over QUIC

Formation 2025

Cette formation utilise Windows Server 2022, la version LTS actuelle.


2. ร‰ditions et Licences

2.1 ร‰ditions Principales

graph TD
    WS[Windows Server 2022] --> STD[Standard]
    WS --> DC[Datacenter]
    WS --> ESS[Essentials]

    STD --> STD_F[2 VMs incluses<br/>Licensing par core]
    DC --> DC_F[VMs illimitรฉes<br/>Shielded VMs<br/>Storage Spaces Direct]
    ESS --> ESS_F[25 users max<br/>50 devices max<br/>1 serveur uniquement]

    style WS fill:#2196F3,stroke:#005a9e,color:#fff
    style DC fill:#4CAF50,stroke:#0e6b0e,color:#fff
ร‰dition Usage VMs Incluses Prix Indicatif
Essentials PME < 25 users 0 ~500โ‚ฌ
Standard Serveurs physiques 2 OSE ~1000โ‚ฌ (16 cores)
Datacenter Virtualisation dense Illimitรฉes ~6000โ‚ฌ (16 cores)

2.2 Modรจle de Licence

Licensing par Core (Standard/Datacenter) :

Rรจgles :
- Minimum 16 cores par serveur
- Minimum 8 cores par CPU
- Licences vendues par pack de 2 cores

Exemple : Serveur 2 CPU x 12 cores = 24 cores
โ†’ Besoin de 12 licences 2-cores Standard

CAL (Client Access License) :

En plus des licences serveur :
- CAL User : Par utilisateur (recommandรฉ pour mobile)
- CAL Device : Par appareil (recommandรฉ pour postes partagรฉs)

Lab vs Production

Pour le lab, utilisez la version Evaluation (180 jours gratuits). En production, assurez-vous d'avoir les licences appropriรฉes.


3. Server Core vs Desktop Experience

3.1 Comparaison

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              SERVER CORE vs DESKTOP EXPERIENCE               โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                              โ”‚
โ”‚   SERVER CORE                    DESKTOP EXPERIENCE          โ”‚
โ”‚   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€          โ”‚
โ”‚                                                              โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”‚
โ”‚   โ”‚ C:\> _        โ”‚              โ”‚ [GUI Desktop] โ”‚          โ”‚
โ”‚   โ”‚               โ”‚              โ”‚ โ”Œโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”   โ”‚          โ”‚
โ”‚   โ”‚ PowerShell    โ”‚              โ”‚ โ”‚Appโ”‚ โ”‚Appโ”‚   โ”‚          โ”‚
โ”‚   โ”‚ sconfig       โ”‚              โ”‚ โ””โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”˜   โ”‚          โ”‚
โ”‚   โ”‚ Remote Admin  โ”‚              โ”‚ Server Manager โ”‚          โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ”‚
โ”‚                                                              โ”‚
โ”‚   โœ… Surface d'attaque rรฉduite   โŒ Plus de vulnรฉrabilitรฉs  โ”‚
โ”‚   โœ… Moins de mises ร  jour       โŒ Plus de MAJ             โ”‚
โ”‚   โœ… RAM: 512 MB minimum         โŒ RAM: 2 GB minimum       โ”‚
โ”‚   โœ… Disque: 10 GB               โŒ Disque: 32 GB           โ”‚
โ”‚   โŒ Pas de GUI local            โœ… GUI local disponible    โ”‚
โ”‚                                                              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

3.2 Quand Utiliser Quoi ?

Scรฉnario Recommandation Justification
Domain Controller Server Core Sรฉcuritรฉ maximale
Serveur de fichiers Server Core Performance
Serveur IIS Dรฉpend Core si PowerShell suffit
Serveur d'applications legacy Desktop Compatibilitรฉ
Serveur de dรฉveloppement Desktop Debug local
Lab d'apprentissage Desktop puis Core Progressivitรฉ

3.3 Fonctionnalitรฉs Disponibles

Composant Server Core Desktop Experience
PowerShell โœ… โœ…
sconfig โœ… โœ…
MMC Snap-ins โŒ Local โœ…
Server Manager โŒ Local โœ…
Notepad/Regedit โœ… โœ…
Explorer.exe โŒ โœ…
Internet Explorer โŒ โœ…
.NET Framework GUI โŒ โœ…

4. Installation de Windows Server

4.1 Prรฉrequis Matรฉriel

Configuration minimale (Server Core):
  CPU: 1.4 GHz 64-bit
  RAM: 512 MB (2 GB recommandรฉ)
  Disque: 32 GB (plus pour rรดles)
  Rรฉseau: Gigabit Ethernet

Configuration minimale (Desktop Experience):
  CPU: 1.4 GHz 64-bit
  RAM: 2 GB (4 GB recommandรฉ)
  Disque: 32 GB (plus pour rรดles)
  Rรฉseau: Gigabit Ethernet

Configuration Lab recommandรฉe:
  CPU: 2 vCPU
  RAM: 4 GB
  Disque: 60 GB
  Rรฉseau: NAT ou Bridge

4.2 Crรฉation de la VM (Hyper-V)

# Crรฉer un switch virtuel
New-VMSwitch -Name "LabSwitch" -SwitchType Internal

# Crรฉer la VM
New-VM -Name "WS2022-DC01" `
       -MemoryStartupBytes 4GB `
       -Generation 2 `
       -NewVHDPath "C:\VMs\WS2022-DC01.vhdx" `
       -NewVHDSizeBytes 60GB `
       -SwitchName "LabSwitch"

# Configurer la VM
Set-VMProcessor -VMName "WS2022-DC01" -Count 2
Set-VMMemory -VMName "WS2022-DC01" -DynamicMemoryEnabled $false
Add-VMDvdDrive -VMName "WS2022-DC01" -Path "C:\ISO\WindowsServer2022.iso"

# Dรฉmarrer la VM
Start-VM -Name "WS2022-DC01"

4.3 Installation Pas ร  Pas

  1. Boot sur l'ISO
  2. Dรฉmarrer la VM
  3. Appuyer sur une touche pour booter sur le DVD

  4. Sรฉlection de la langue

    Language: French (France)
    Time and currency: French (France)
    Keyboard: French
    

  5. Choix de l'รฉdition

    โœ“ Windows Server 2022 Standard (Desktop Experience)
      pour le premier lab
    
    Plus tard :
    โœ“ Windows Server 2022 Standard (Server Core)
    

  6. Type d'installation

    โœ“ Custom: Install Windows only (advanced)
    

  7. Partitionnement

    Sรฉlectionner le disque โ†’ Next
    (L'installateur crรฉera les partitions automatiquement)
    

  8. Configuration initiale

    Mot de passe Administrator: P@ssw0rd123!
    (Utilisez un mot de passe fort en production)
    


5. Configuration Post-Installation

5.1 Premier Login

Aprรจs l'installation :

# Ouvrir PowerShell en tant qu'Administrateur
# Windows+X โ†’ Windows Terminal (Admin)

# Vรฉrifier la version
Get-ComputerInfo | Select-Object WindowsProductName, OsVersion, OsBuildNumber

5.2 Configuration avec sconfig (Server Core)

sconfig est l'outil de configuration de base pour Server Core :

===============================================================================
                         Server Configuration
===============================================================================

1) Domain/Workgroup:                    Workgroup:  WORKGROUP
2) Computer Name:                       WIN-XXXXXXX
3) Add Local Administrator
4) Configure Remote Management          Enabled

5) Windows Update Settings:             Manual
6) Download and Install Updates
7) Remote Desktop:                      Disabled

8) Network Settings
9) Date and Time
10) Telemetry settings                  Required
11) Windows Activation

12) Log Off User
13) Restart Server
14) Shut Down Server
15) Exit to Command Line

Configuration recommandรฉe pour le lab :

# Dans sconfig :

# 2) Renommer le serveur
Enter number to select an option: 2
Enter new computer name: DC01
โ†’ Restart: No (on redรฉmarre aprรจs toutes les configs)

# 8) Configuration rรฉseau
Enter number to select an option: 8
Index: 1
โ†’ Select: 1) Set Network Adapter Address
โ†’ S) Static IP
โ†’ IP: 192.168.1.10
โ†’ Subnet: 255.255.255.0
โ†’ Gateway: 192.168.1.1
โ†’ DNS: 127.0.0.1 (le serveur sera DNS)

# 7) Activer Remote Desktop
Enter number to select an option: 7
โ†’ E) Enable
โ†’ 1) Allow only NLA connections

# 13) Redรฉmarrer
Enter number to select an option: 13

5.3 Configuration avec PowerShell

# Renommer le serveur
Rename-Computer -NewName "DC01" -Restart

# Aprรจs redรฉmarrage, configurer le rรฉseau
New-NetIPAddress -InterfaceAlias "Ethernet" `
                 -IPAddress 192.168.1.10 `
                 -PrefixLength 24 `
                 -DefaultGateway 192.168.1.1

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" `
                           -ServerAddresses 127.0.0.1, 8.8.8.8

# Activer Remote Desktop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' `
                 -Name "fDenyTSConnections" -Value 0

Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

# Vรฉrifier la configuration
Get-NetIPConfiguration
Test-NetConnection 8.8.8.8

5.4 Configuration du Pare-feu

# Voir l'รฉtat du pare-feu
Get-NetFirewallProfile | Select-Object Name, Enabled

# Autoriser ICMP (ping)
New-NetFirewallRule -DisplayName "Allow ICMPv4-In" `
                    -Protocol ICMPv4 -IcmpType 8 `
                    -Direction Inbound -Action Allow

# Autoriser la gestion ร  distance (WinRM)
Enable-PSRemoting -Force

# Autoriser RSAT
Enable-NetFirewallRule -DisplayGroup "Windows Remote Management"
Enable-NetFirewallRule -DisplayGroup "Remote Event Log Management"
Enable-NetFirewallRule -DisplayGroup "Remote Service Management"

6. Architecture Windows Server

6.1 Structure du Systรจme

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    ARCHITECTURE WINDOWS                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                              โ”‚
โ”‚  USER MODE                                                   โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                                                   โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚ Services  โ”‚ โ”‚ Processes โ”‚ โ”‚ PowerShellโ”‚ โ”‚   Apps    โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚        โ”‚             โ”‚             โ”‚             โ”‚          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚                   Windows API (Win32/Win64)          โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                              โ”‚                              โ”‚
โ”‚  โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•  โ”‚
โ”‚                                                              โ”‚
โ”‚  KERNEL MODE                                                 โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚              NT Kernel (ntoskrnl.exe)                 โ”‚  โ”‚
โ”‚  โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”‚  โ”‚
โ”‚  โ”‚   โ”‚ Process  โ”‚ โ”‚ Memory   โ”‚ โ”‚  I/O     โ”‚            โ”‚  โ”‚
โ”‚  โ”‚   โ”‚ Manager  โ”‚ โ”‚ Manager  โ”‚ โ”‚ Manager  โ”‚            โ”‚  โ”‚
โ”‚  โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚              Hardware Abstraction Layer (HAL)         โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                                                              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

6.2 Rรฉpertoires Importants

# Structure des dossiers Windows Server
C:\
โ”œโ”€โ”€ Windows\               # Systรจme d'exploitation
โ”‚   โ”œโ”€โ”€ System32\         # Binaires systรจme 64-bit
โ”‚   โ”œโ”€โ”€ SysWOW64\         # Binaires systรจme 32-bit
โ”‚   โ”œโ”€โ”€ Logs\             # Logs Windows
โ”‚   โ””โ”€โ”€ Temp\             # Fichiers temporaires systรจme
โ”œโ”€โ”€ Program Files\        # Applications 64-bit
โ”œโ”€โ”€ Program Files (x86)\  # Applications 32-bit
โ”œโ”€โ”€ Users\                # Profils utilisateurs
โ”œโ”€โ”€ inetpub\              # Racine IIS (si installรฉ)
โ””โ”€โ”€ ProgramData\          # Donnรฉes applications (cachรฉ)
# Variables d'environnement importantes
$env:SystemRoot           # C:\Windows
$env:ProgramFiles         # C:\Program Files
$env:ProgramData          # C:\ProgramData
$env:USERPROFILE          # C:\Users\Administrator
$env:TEMP                 # Dossier temporaire
$env:COMPUTERNAME         # Nom du serveur

6.3 Le Registre Windows

# Ruches principales du registre
HKEY_LOCAL_MACHINE (HKLM)    # Configuration machine
โ”œโ”€โ”€ HARDWARE                  # Matรฉriel dรฉtectรฉ
โ”œโ”€โ”€ SAM                      # Security Account Manager
โ”œโ”€โ”€ SECURITY                 # Politiques de sรฉcuritรฉ
โ”œโ”€โ”€ SOFTWARE                 # Logiciels installรฉs
โ””โ”€โ”€ SYSTEM                   # Configuration systรจme

HKEY_CURRENT_USER (HKCU)     # Configuration utilisateur courant
HKEY_USERS (HKU)             # Tous les profils chargรฉs
HKEY_CLASSES_ROOT (HKCR)     # Associations de fichiers
HKEY_CURRENT_CONFIG (HKCC)   # Profil matรฉriel courant
# Accรจs au registre avec PowerShell
# Lire une valeur
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" `
                 -Name ProductName

# Crรฉer/modifier une valeur
Set-ItemProperty -Path "HKLM:\SOFTWARE\MyApp" -Name "Setting1" -Value "Value1"

# Crรฉer une clรฉ
New-Item -Path "HKLM:\SOFTWARE\MyApp"

7. Outils de Base

7.1 Commandes Essentielles

# Information systรจme
systeminfo                    # Infos dรฉtaillรฉes
hostname                      # Nom du serveur
whoami                       # Utilisateur courant
whoami /groups               # Groupes de l'utilisateur

# Gestion des fichiers
dir                          # Liste (alias de Get-ChildItem)
cd                           # Changer de rรฉpertoire
copy, move, del              # Opรฉrations fichiers
md, rd                       # Crรฉer/supprimer rรฉpertoire

# Rรฉseau
ipconfig /all                # Configuration rรฉseau
ping                         # Test connectivitรฉ
nslookup                     # Requรชte DNS
netstat -an                  # Connexions actives

# Processus
tasklist                     # Liste des processus
taskkill /PID <pid>          # Tuer un processus

# Services
net start                    # Liste services dรฉmarrรฉs
net start <service>          # Dรฉmarrer un service
net stop <service>           # Arrรชter un service
sc query                     # ร‰tat des services

7.2 MMC et Snap-ins (Desktop Experience)

# Lancer les consoles d'administration
mmc                          # Console vide
compmgmt.msc                 # Gestion de l'ordinateur
devmgmt.msc                  # Gestionnaire de pรฉriphรฉriques
diskmgmt.msc                 # Gestion des disques
services.msc                 # Services
eventvwr.msc                 # Observateur d'รฉvรฉnements
lusrmgr.msc                  # Utilisateurs et groupes locaux
gpedit.msc                   # ร‰diteur de stratรฉgie locale

7.3 Windows Admin Center (WAC)

Windows Admin Center est une interface web moderne pour administrer les serveurs :

# Tรฉlรฉcharger et installer WAC
# https://aka.ms/wacdownload

# Aprรจs installation, accรฉder via :
# https://localhost:6516  (ou https://<servername>:6516)

Fonctionnalitรฉs WAC :

  • Dashboard centralisรฉ
  • Gestion des VMs Hyper-V
  • Monitoring des performances
  • Accรจs PowerShell distant
  • Gestion des mises ร  jour
  • Interface moderne (remplace RSAT pour beaucoup de tรขches)

8. Exercices Pratiques

Exercice 1 : Installation Server Core

Objectif : Installer Windows Server 2022 en mode Server Core.

ร‰tapes :

  1. Crรฉer une VM avec 4 GB RAM, 60 GB disque
  2. Monter l'ISO Windows Server 2022
  3. Installer en mode Server Core (sans Desktop Experience)
  4. Configurer le mot de passe Administrator

Vรฉrification :

# Aprรจs installation, vous devez voir uniquement cmd.exe
# Tapez "powershell" pour accรฉder ร  PowerShell

Exercice 2 : Configuration Rรฉseau

Objectif : Configurer le rรฉseau avec sconfig et PowerShell.

Configuration cible :

IP Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Server: 127.0.0.1, 8.8.8.8
Computer Name: DC01

Solution avec sconfig :

# Lancer sconfig
sconfig

# Option 2 : Changer le nom
# Option 8 : Configurer le rรฉseau

Solution avec PowerShell :

# Configurer l'IP
$adapter = Get-NetAdapter | Where-Object Status -eq "Up"
New-NetIPAddress -InterfaceIndex $adapter.ifIndex `
                 -IPAddress 192.168.1.10 `
                 -PrefixLength 24 `
                 -DefaultGateway 192.168.1.1

Set-DnsClientServerAddress -InterfaceIndex $adapter.ifIndex `
                           -ServerAddresses 127.0.0.1, 8.8.8.8

# Renommer et redรฉmarrer
Rename-Computer -NewName "DC01" -Restart

Exercice 3 : Activer l'Administration Distante

Objectif : Configurer le serveur pour l'administration ร  distance.

Tรขches :

  1. Activer Remote Desktop
  2. Activer WinRM (PowerShell Remoting)
  3. Configurer le pare-feu

Solution :

# 1. Activer Remote Desktop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' `
                 -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

# 2. Activer WinRM
Enable-PSRemoting -Force
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force

# 3. Vรฉrifier
Get-Service WinRM
Test-WSMan localhost

Test depuis un client :

# Connexion PowerShell ร  distance
Enter-PSSession -ComputerName DC01 -Credential (Get-Credential)

# Ou exรฉcuter une commande
Invoke-Command -ComputerName DC01 -ScriptBlock { Get-ComputerInfo }

9. Quiz de Validation

Questions

  1. Quelle รฉdition Windows Server est recommandรฉe pour un serveur avec virtualisation dense ?
  2. [ ] A. Essentials
  3. [ ] B. Standard
  4. [ ] C. Datacenter

  5. Quel est l'avantage principal de Server Core ?

  6. [ ] A. Interface graphique complรจte
  7. [ ] B. Surface d'attaque rรฉduite
  8. [ ] C. Compatibilitรฉ avec toutes les applications

  9. Quel outil permet de configurer Server Core facilement ?

  10. [ ] A. Server Manager
  11. [ ] B. sconfig
  12. [ ] C. MMC

  13. Quelle commande active PowerShell Remoting ?

  14. [ ] A. Enable-RemoteDesktop
  15. [ ] B. Enable-PSRemoting
  16. [ ] C. Set-RemoteAccess

  17. Quel port utilise WinRM par dรฉfaut ?

  18. [ ] A. 3389
  19. [ ] B. 5985/5986
  20. [ ] C. 445

Rรฉponses

  1. C - Datacenter (VMs illimitรฉes)
  2. B - Surface d'attaque rรฉduite
  3. B - sconfig
  4. B - Enable-PSRemoting
  5. B - 5985 (HTTP) / 5986 (HTTPS)

10. Ressources


Suivant : Module 02 : PowerShell Basics


โ† Programme Module 02 : PowerShell Basics โ†’

Retour au Programme