Restrict Unauthenticated RPC clients: registry value RestrictRemoteClientsComputerHKLM\Software\Policies\Microsoft\Windows NT\Rpc
- Policy ID
- RpcRestrictRemoteClients
- Scope
- Computer Configuration
- Supported on
- At least Windows XP Professional with SP2
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Remote Procedure Call
Registry
RestrictRemoteClients
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows NT\Rpc Current key
- Enabled value
- Depends on the option value
- Element
- RPC Runtime Unauthenticated Client Restriction to Apply:
| Item | Stored value |
|---|---|
| None | 0 |
| Authenticated | 1 |
| Authenticated without exceptions | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc] ; Options (use only one) ; None "RestrictRemoteClients"=dword:00000000 ; Authenticated "RestrictRemoteClients"=dword:00000001 ; Authenticated without exceptions "RestrictRemoteClients"=dword:00000002
CMD
:: Options (use only one) :: None reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 0 /f :: Authenticated reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 1 /f :: Authenticated without exceptions reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Force | Out-Null # Options (use only one) # None New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 0 -Force | Out-Null # Authenticated New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 1 -Force | Out-Null # Authenticated without exceptions New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 2 -Force | Out-Null