維護 RPC 疑難排解狀態資訊 的登錄值 StateInformation電腦HKLM\Software\Policies\Microsoft\Windows NT\Rpc
- 原則 ID
- RpcStateInformation
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2003 作業系統或 Windows XP Professional
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- 系統 › 遠端程序呼叫
登錄
StateInformation
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 要維護的 RPC 執行階段狀態資訊:
| 項目 | 儲存的值 |
|---|---|
| 無 | 0 |
| Auto1 | 1 |
| Auto2 | 2 |
| 伺服器 | 3 |
| 完整 | 4 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc] ; 選項 (只使用其中一個) ; 無 "StateInformation"=dword:00000000 ; Auto1 "StateInformation"=dword:00000001 ; Auto2 "StateInformation"=dword:00000002 ; 伺服器 "StateInformation"=dword:00000003 ; 完整 "StateInformation"=dword:00000004
CMD
:: 選項 (只使用其中一個) :: 無 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 0 /f :: Auto1 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 1 /f :: Auto2 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 2 /f :: 伺服器 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 3 /f :: 完整 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 4 /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 'StateInformation' -PropertyType DWord -Value 0 -Force | Out-Null # Auto1 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 1 -Force | Out-Null # Auto2 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 2 -Force | Out-Null # 伺服器 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 3 -Force | Out-Null # 完整 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 4 -Force | Out-Null