RPC 接続設定を構成する のレジストリ値 RpcUseNamedPipeProtocol ほか 1 件コンピューターHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC

ポリシー ID
ConfigureRpcConnectionPolicy
適用対象
コンピューターの構成
サポートされるバージョン
Windows Server 2016 以降または Windows 10 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
プリンター

レジストリ

RpcUseNamedPipeProtocol

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
発信 RPC 接続に使用するプロトコル:
オプション
項目保存される値
RPC over TCP0
名前付きパイプ経由の RPC1
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC]

; 選択項目 (1 つだけ使用)
; RPC over TCP
"RpcUseNamedPipeProtocol"=dword:00000000
; 名前付きパイプ経由の RPC
"RpcUseNamedPipeProtocol"=dword:00000001
CMD
:: 選択項目 (1 つだけ使用)

:: RPC over TCP
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 0 /f
:: 名前付きパイプ経由の RPC
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 1 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# RPC over TCP
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 0 -Force | Out-Null
# 名前付きパイプ経由の RPC
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 1 -Force | Out-Null

RpcAuthentication

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
発信 RPC 接続に認証を使用する:
オプション
項目保存される値
既定値0
認証が有効になりました1
認証が無効になっています2
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC]

; 選択項目 (1 つだけ使用)
; 既定値
"RpcAuthentication"=dword:00000000
; 認証が有効になりました
"RpcAuthentication"=dword:00000001
; 認証が無効になっています
"RpcAuthentication"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: 既定値
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 0 /f
:: 認証が有効になりました
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 1 /f
:: 認証が無効になっています
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 既定値
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 0 -Force | Out-Null
# 認証が有効になりました
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 1 -Force | Out-Null
# 認証が無効になっています
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 2 -Force | Out-Null