====== Niveaux fonctionnels en PowerShell ====== ===== Module PowerShell ActiveDirectory ===== Import-Module ActiveDirectory ===== Vérifier les niveaux fonctionnels ===== Niveau fonctionnel du domaine : (Get-ADDomain).DomainMode Niveau fonctionnel de la forêt : (Get-ADForest).ForestMode ===== Augmenter les niveaux fonctionnels ===== ==== Liste des niveaux fonctionnels ==== === Domaines === * ''Windows2000Domain'' * ''Windows2003InterimDomain'' * ''Windows2003Domain'' * ''Windows2008Domain'' * ''Windows2008R2Domain'' * ''Windows2012Domain'' * ''Windows2012R2Domain'' * ''Windows2016Domain'' * ''Windows2025Domain'' === Foret === * ''Windows2000Forest'' * ''Windows2003InterimForest'' * ''Windows2003Forest'' * ''Windows2008Forest'' * ''Windows2008R2Forest'' * ''Windows2012Forest'' * ''Windows2012R2Forest'' * ''Windows2016Forest'' * ''Windows2025Forest'' ==== Augmenter niveau fonctionnel domaine ==== Set-ADDomainMode domaine.tdl -DomainMode ==== Augmenter niveau fonctionnel forêt ==== Set-ADForestMode domaine.tdl -ForestMode ===== Bibliographie ===== * https://rdr-it.com/active-directory-augmenter-le-niveau-fonctionnel-du-domaine-et-de-la-foret-avec-powershell/ * https://learn.microsoft.com/fr-fr/windows-server/identity/ad-ds/plan/raise-domain-forest-functional-levels