Open in the explorer

Enable Microsoft Entra ID Authentication Enforcement

Activer l’application de l’authentification Microsoft Entra ID

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Sécurité
Supported on
At least Windows 11 Version 24H2 FR: Au moins Windows 11 version 24H2
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_MICROSOFT_ENTRA_ID_AUTHENTICATION_ENFORCEMENT_POLICY

Explanation

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.

French text from 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.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
EnableMicrosoftEntraIdAuthenticationEnforcement
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: 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

Disable

# Disable: 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

Revert to "Not configured"

# Revert to "Not configured": 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

Availability

Windows 11

✓ 26H2changed✓ 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