# Windows Server

Tous ce qui est relatif à l'installation, la configuration et la gestion de Windows Server, toutes versions confondues.

# Active Directory

Uniquement ce qui concerne l'installation, la configuration et la gestion d'un Active Directory.

# Installation

JHjsfdgdfg

# Exigence de compléxité

Faire un résumé de cette page :

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements

# Container par défaut

## Voir les OU par défaut

```powershell
get-addomain | select computerscontainer,userscontainer | FL
```

## Modifier les OU par défaut

### Ordinateurs

```powershell
redircmp <DN de l'OU>
```

### Utilisateurs

```powershell
redirusr <DN de l'ou>
```

# Cycle de vie

## Récapitulatif selon les versions

<p class="callout info">Vérifiez la source régulièrement, car Microsoft peut décider de modifier les dates de fin de support d'un produit durant son cycle de vie.</p>

<table class="wikitable" id="bkmrk-produit-debut-suppor" style="width:108.214%;border-collapse:collapse;border-style:solid;"><thead><tr><td class="align-center" style="width:14.6603%;">PRODUIT</td><td class="align-center" style="width:10.6079%;">DEBUT</td><td class="align-center" style="width:14.4229%;">SUPPORT STANDARD

</td><td class="align-center" style="width:14.1826%;">SUPPORT ETENDU

</td><td class="align-center" style="width:46.1263%;">SOURCE</td></tr></thead><tbody><tr><td class="align-center" style="width:14.6603%;">Server 2008</td><td class="align-center" style="width:10.6079%;">06/05/2008</td><td class="align-center" style="width:14.4229%;">13/01/2015</td><td class="align-center" style="width:14.1826%;">14/01/2020</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2008](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2008)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2008 R2</td><td class="align-center" style="width:10.6079%;">22/10/2009</td><td class="align-center" style="width:14.4229%;">13/01/2015</td><td class="align-center" style="width:14.1826%;">14/01/2020</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2008-r2](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2008-r2)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2012</td><td class="align-center" style="width:10.6079%;">30/10/2012</td><td class="align-center" style="width:14.4229%;">09/10/2018</td><td class="align-center" style="width:14.1826%;">10/10/2023</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2012](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2012)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2012 R2</td><td class="align-center" style="width:10.6079%;">25/11/2013</td><td class="align-center" style="width:14.4229%;">09/10/2018</td><td class="align-center" style="width:14.1826%;">10/10/2023</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2012-r2](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2012-r2)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2016</td><td class="align-center" style="width:10.6079%;">15/10/2016</td><td class="align-center" style="width:14.4229%;">11/01/2022</td><td class="align-center" style="width:14.1826%;">12/01/2027</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2016](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2016)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2019</td><td class="align-center" style="width:10.6079%;">13/11/2018</td><td class="align-center" style="width:14.4229%;">09/01/2024</td><td class="align-center" style="width:14.1826%;">09/01/2029</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2019](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2019)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2022</td><td class="align-center" style="width:10.6079%;">18/08/2021</td><td class="align-center" style="width:14.4229%;">13/10/2026</td><td class="align-center" style="width:14.1826%;">14/10/2031</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2022](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2022)</td></tr><tr><td class="align-center" style="width:14.6603%;">Server 2025</td><td class="align-center" style="width:10.6079%;">01/11/2024</td><td class="align-center" style="width:14.4229%;">09/10/2029</td><td class="align-center" style="width:14.1826%;">10/10/2034</td><td class="align-center" style="width:46.1263%;">[/lifecycle/products/windows-server-2025](https://learn.microsoft.com/fr-fr/lifecycle/products/windows-server-2025)</td></tr></tbody></table>

# Changement de version

## Passer en version Standard

Vérifier que l'édition Standard soit bien disponible pour le système actuellement installé :

```powershell
DISM /Online /Get-TargetEditions
```

Si c'est bien le cas, utilisez la commande suivant pour modifier la version :

```powershell
DISM /Online /Set-Edition:ServerStandard /ProductKey:<key> /AcceptEula
```

Renseignez bien évidemment votre clé produit dans la commande.

# Remote Desktop Services

Tout ce qui concerne la fonctionnalité RDS de Windows Server

# Remote Desktop Services

#### Freeze sur session

Dans le registre, naviguez vers la clé suivante :

```postgresql
HKLM\SOFTWARE\Microsoft\Terminal Server Client
```

Faites un export de la clé "Terminal Server Client" complète, en cas de besoin.

Créez une nouvelle clé DWORD nommée **UseURCP** avec comme valeur 0.

<p class="callout info">Il n'est pas nécessaire de redémarrer le serveur hôte RDS après cette modification.</p>

Définition de URCP par Microsoft :

> We present a Universal Rate Control Protocol (URCP), which provides applications with fair and full link utilization while operating at low delay and loss levels as needed by interactive real-time communications (RTC) applications across a range of complex networks in use today, such as Wi-Fi hotspots, 4G (HSPA+), and WiMAX. As opposed to many existing rate control techniques which are specially designed for differing network types and application requirements, URCP attempts to provide a universal framework for rate control by learning network parameters and then automatically adapting a utility maximization based rate control framework to achieve good performance across any network.
> 
> URCP is able to provide significantly improved performance over state-of-art rate control techniques for RTC applications, in terms of throughput, delay, and loss. On real-world network tests, URCP provides similar throughput to commonly used loss based schemes while achieving up to a 100x improvement in operating delay (compared to TCP NewReno on the Clearwire WiMAX network). Compared to existing delay based rate control protocols commonly used by RTC applications, URCP provides similar operating delay while achieving close to 2.5x improvement in throughput on noisy networks (compared to WebRTC on the T-Mobile HSPA+ network).