Restrict Unauthenticated RPC clients
Limiter les clients RPC non authentifiés
Explanation
This policy setting controls how the RPC server runtime handles unauthenticated RPC clients connecting to RPC servers.
This policy setting impacts all RPC applications. In a domain environment this policy setting should be used with caution as it can impact a wide range of functionality including group policy processing itself. Reverting a change to this policy setting can require manual intervention on each affected machine. This policy setting should never be applied to a domain controller.
If you disable this policy setting, the RPC server runtime uses the value of "Authenticated" on Windows Client, and the value of "None" on Windows Server versions that support this policy setting.
If you do not configure this policy setting, it remains disabled. The RPC server runtime will behave as though it was enabled with the value of "Authenticated" used for Windows Client and the value of "None" used for Server SKUs that support this policy setting.
If you enable this policy setting, it directs the RPC server runtime to restrict unauthenticated RPC clients connecting to RPC servers running on a machine. A client will be considered an authenticated client if it uses a named pipe to communicate with the server or if it uses RPC Security. RPC Interfaces that have specifically requested to be accessible by unauthenticated clients may be exempt from this restriction, depending on the selected value for this policy setting.
-- "None" allows all RPC clients to connect to RPC Servers running on the machine on which the policy setting is applied.
-- "Authenticated" allows only authenticated RPC Clients (per the definition above) to connect to RPC Servers running on the machine on which the policy setting is applied. Exemptions are granted to interfaces that have requested them.
-- "Authenticated without exceptions" allows only authenticated RPC Clients (per the definition above) to connect to RPC Servers running on the machine on which the policy setting is applied. No exceptions are allowed.
Note: This policy setting will not be applied until the system is rebooted.
Ce paramètre de stratégie détermine comment l’exécution du serveur RPC gère les clients RPC non authentifiés se connectant à des serveurs RPC.
Ce paramètre de stratégie a un impact sur toutes les applications RPC. Dans un environnement de domaine, ce paramètre de stratégie doit être utilisé avec précaution car il peut avoir un impact sur de nombreuses fonctionnalités, y compris le traitement de la stratégie de groupe lui-même. Si vous souhaitez annuler une modification apportée à ce paramètre de stratégie, vous devrez procéder manuellement sur chaque machine affectée. N’appliquez jamais de paramètre de stratégie à un contrôleur de domaine.
Si vous désactivez ce paramètre de stratégie, l’exécution du serveur RPC utilise la valeur « Authentifié » sur le client Windows et la valeur « Aucune » sur les versions de Windows Server qui prennent en charge ce paramètre de stratégie.
Si vous ne configurez pas ce paramètre de stratégie, il reste désactivé. L’exécution du serveur RPC se comporte comme si elle était activée avec la valeur « Authentifié » pour le client Windows et la valeur « Aucune » pour les références (SKU) Server qui prennent en charge ce paramètre de stratégie.
Si vous activez ce paramètre de stratégie, il paramètre l’exécution d’un serveur RPC de sorte à empêcher la connexion de clients RPC non authentifiés aux serveurs RPC exécutés sur un ordinateur. Un client est considéré comme authentifié s’il utilise un canal nommé pour communiquer avec le serveur ou s’il utilise la sécurité RPC. Les interfaces RPC qui ont spécifiquement demandé à être accessibles aux clients non authentifiés peuvent être exemptes de cette restriction, en fonction de la valeur sélectionnée pour ce paramètre de stratégie.
-- « Aucune » autorise tous les clients RPC à se connecter aux serveurs RPC exécutés sur l’ordinateur sur lequel la stratégie est appliquée.
-- « Authentifié » n’autorise que les clients RPC authentifiés (en fonction de la définition ci-dessus) à se connecter aux serveurs RPC s’exécutant sur l’ordinateur sur lequel le paramètre de stratégie est appliqué. Il est possible d’accorder des exceptions aux interfaces qui le demandent.
-- « Authentifié sans exceptions » n’autorise que les clients RPC authentifiés (en fonction de la définition ci-dessus) à se connecter aux serveurs RPC s’exécutant sur l’ordinateur sur lequel le paramètre de stratégie est appliqué. Aucune exception n’est autorisée.
Remarque : ce paramètre de stratégie ne s’applique qu’après le redémarrage du système.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: RPC/RpcRestrictRemoteClients
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# RPC Runtime Unauthenticated Client Restriction to Apply
# Possible options:
# None = 0
# Authenticated = 1
# Authenticated without exceptions = 2
Set-ItemProperty -Path $k -Name 'RestrictRemoteClients' -Value 1 -Type DWordDisable
# Disable: RPC/RpcRestrictRemoteClients
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": RPC/RpcRestrictRemoteClients
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc'
Remove-ItemProperty -Path $k -Name 'RestrictRemoteClients' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RPC Runtime Unauthenticated Client Restriction to Apply:Restriction d’exécution du client à distance RPC non authentifié à appliquer :RpcRestrictRemoteClientsList | Drop-down listenum | RestrictRemoteClients | REG_DWORD | Required · Default choice (UI): #1
|