Open in the explorer

Require secure RPC communication

Requérir des communications RPC sécurisées

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 Server 2003 FR: Au minimum Windows Server 2003
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_RPC_ENCRYPTION

Explanation

Specifies whether a Remote Desktop Session Host server requires secure RPC communication with all clients or allows unsecured communication.

You can use this setting to strengthen the security of RPC communication with clients by allowing only authenticated and encrypted requests.

If the status is set to Enabled, Remote Desktop Services accepts requests from RPC clients that support secure requests, and does not allow unsecured communication with untrusted clients.

If the status is set to Disabled, Remote Desktop Services always requests security for all RPC traffic. However, unsecured communication is allowed for RPC clients that do not respond to the request.

If the status is set to Not Configured, unsecured communication is allowed.

Note: The RPC interface is used for administering and configuring Remote Desktop Services.

French text from Windows 11 26H2

Spécifie si un serveur Hôte de la session Bureau à distance requiert des communications RPC sécurisées avec tous les clients ou bien autorise des communications non sécurisées.

Vous pouvez utiliser ce paramètre pour renforcer la sécurité des communications RPC avec les clients en autorisant seulement les demandes authentifiées et chiffrées.

Si l’état est défini sur Activé, le serveur des services Bureau à distance accepte les demandes des clients RPC qui prennent en charge les demandes sécurisées et n’autorise pas les communications non sécurisées avec les clients non approuvés.

Si l’état est défini sur Désactivé, le serveur des services Bureau à distance requiert toujours la sécurité pour tout le trafic RPC. Cependant, les communications non sécurisées sont autorisées pour les clients RPC qui ne répondent pas à la demande.

Si l’état est défini sur Non configuré, les communications non sécurisées sont autorisées.

Remarque : l’interface RPC sert à administrer et configurer les services Bureau à distance.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
fEncryptRPCTraffic
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_RPC_ENCRYPTION
$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 'fEncryptRPCTraffic' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_RPC_ENCRYPTION
$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 'fEncryptRPCTraffic' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_RPC_ENCRYPTION
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fEncryptRPCTraffic' -ErrorAction SilentlyContinue

Availability