Konfigurieren von RPC-Verbindungseinstellungen: Registrierungswert RpcUseNamedPipeProtocol und 1 weitereComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC

Richtlinien-ID
ConfigureRpcConnectionPolicy
Bereich
Computerkonfiguration
Unterstützt unter
Mindestens Windows Server 2016, Windows 10
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
Drucker

Registrierung

RpcUseNamedPipeProtocol

REG_DWORDComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Für ausgehende RPC-Verbindungen zu verwendendes Protokoll:
Optionen
EintragGespeicherter Wert
RPC über TCP0
RPC über benannte Pipes1
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; RPC über TCP
"RpcUseNamedPipeProtocol"=dword:00000000
; RPC über benannte Pipes
"RpcUseNamedPipeProtocol"=dword:00000001
CMD
:: Optionen (nur eine verwenden)

:: RPC über TCP
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 0 /f
:: RPC über benannte Pipes
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 1 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Optionen (nur eine verwenden)
# RPC über TCP
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 0 -Force | Out-Null
# RPC über benannte Pipes
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 1 -Force | Out-Null

RpcAuthentication

REG_DWORDComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Verwenden Sie die Authentifizierung für ausgehende RPC-Verbindungen:
Optionen
EintragGespeicherter Wert
Standard0
Authentifizierung aktiviert1
Authentifizierung deaktiviert2
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; Standard
"RpcAuthentication"=dword:00000000
; Authentifizierung aktiviert
"RpcAuthentication"=dword:00000001
; Authentifizierung deaktiviert
"RpcAuthentication"=dword:00000002
CMD
:: Optionen (nur eine verwenden)

:: Standard
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 0 /f
:: Authentifizierung aktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 1 /f
:: Authentifizierung deaktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 2 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Optionen (nur eine verwenden)
# Standard
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 0 -Force | Out-Null
# Authentifizierung aktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 1 -Force | Out-Null
# Authentifizierung deaktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 2 -Force | Out-Null