限制未經驗證的 RPC 用戶端 的登錄值 RestrictRemoteClients電腦HKLM\Software\Policies\Microsoft\Windows NT\Rpc

原則 ID
RpcRestrictRemoteClients
適用範圍
電腦設定
支援的作業系統
至少需要 Windows XP Professional SP2
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
系統 › 遠端程序呼叫

登錄

RestrictRemoteClients

REG_DWORD電腦
啟用時的值
取決於選項值
元素
要套用的 RPC 執行階段未經驗證用戶端限制:
選項
項目儲存的值
無0
已驗證1
已在無例外下驗證2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 無
"RestrictRemoteClients"=dword:00000000
; 已驗證
"RestrictRemoteClients"=dword:00000001
; 已在無例外下驗證
"RestrictRemoteClients"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 無
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 0 /f
:: 已驗證
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 1 /f
:: 已在無例外下驗證
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "RestrictRemoteClients" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Force | Out-Null

# 選項 (只使用其中一個)
# 無
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 0 -Force | Out-Null
# 已驗證
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 1 -Force | Out-Null
# 已在無例外下驗證
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'RestrictRemoteClients' -PropertyType DWord -Value 2 -Force | Out-Null