Ouvrir dans l'explorateur

Activer l’application de l’authentification Microsoft Entra ID

Enable Microsoft Entra ID Authentication Enforcement

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Sécurité EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security
Pris en charge sur
Au moins Windows 11 version 24H2 EN : At least Windows 11 Version 24H2
Fichier ADMX
TerminalServer.admx
Nom interne
TerminalServer/TS_MICROSOFT_ENTRA_ID_AUTHENTICATION_ENFORCEMENT_POLICY

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier s’il faut exiger l’application côté serveur de l’authentification Microsoft Entra ID.

Si vous activez ce paramètre de stratégie, tous les clients Services Bureau à distance doivent utiliser l’authentification AAD RDS pour s’authentifier auprès des serveurs Hôtes de session Bureau à distance.

Cette stratégie n’autorise pas le recours à d’autres méthodes d’authentification.

L’authentification au niveau du réseau (NLA) doit être activée pour que cette stratégie soit effective. Reportez-vous à la stratégie « Exiger l’authentification utilisateur pour les connexions à distance à l’aide de l’authentification au niveau du réseau ».

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’application de l’authentification Microsoft Entra ID ne sera pas appliquée.

This policy setting allows you to specify whether to require server-side enforcement of Microsoft Entra ID authentication.

If you enable this policy setting, all Remote Desktop Services clients must use RDS AAD Auth in order to authenticate to RD Session Host servers.

This policy does not allow fallback to other authentication methods.

Network Level Authentication (NLA) is required to be enabled in order for this policy to be effective. Refer to the "Require user authentication for remote connections by using Network Level Authentication" policy.

If you disable or do not configure this policy setting, then Microsoft Entra ID Authentication Enforcement is not enforced.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Nom de la valeur
EnableMicrosoftEntraIdAuthenticationEnforcement
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : TerminalServer/TS_MICROSOFT_ENTRA_ID_AUTHENTICATION_ENFORCEMENT_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableMicrosoftEntraIdAuthenticationEnforcement' -Value 1 -Type DWord

Désactiver

# Désactiver : TerminalServer/TS_MICROSOFT_ENTRA_ID_AUTHENTICATION_ENFORCEMENT_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableMicrosoftEntraIdAuthenticationEnforcement' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : TerminalServer/TS_MICROSOFT_ENTRA_ID_AUTHENTICATION_ENFORCEMENT_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'EnableMicrosoftEntraIdAuthenticationEnforcement' -ErrorAction SilentlyContinue

Disponibilité

Windows 11

✓ 26H2modifiée✓ 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016