Limiter les clients RPC non authentifiés : valeur de Registre RestrictRemoteClientsOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Rpc

ID de stratégie
RpcRestrictRemoteClients
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows XP Professionnel avec SP2
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Système › Appel de procédure distante

Registre

RestrictRemoteClients

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Restriction d’exécution du client à distance RPC non authentifié à appliquer :
Options
EntréeValeur stockée
Aucune0
Authentifié1
Authentifié sans exceptions2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc]

; Options (en utiliser une seule)
; Aucune
"RestrictRemoteClients"=dword:00000000
; Authentifié
"RestrictRemoteClients"=dword:00000001
; Authentifié sans exceptions
"RestrictRemoteClients"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Aucune
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 0 /f
:: Authentifié
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 1 /f
:: Authentifié sans exceptions
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Force | Out-Null

# Options (en utiliser une seule)
# Aucune
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 0 -Force | Out-Null
# Authentifié
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 1 -Force | Out-Null
# Authentifié sans exceptions
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 2 -Force | Out-Null