Enable Microsoft Entra ID Authentication Enforcement
Activer l’application de l’authentification Microsoft Entra ID
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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