Configure RPC connection settings: registry value RpcUseNamedPipeProtocol and 1 moreComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC
- Policy ID
- ConfigureRpcConnectionPolicy
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2016, Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Printers
Registry
RpcUseNamedPipeProtocol
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Protocol to use for outgoing RPC connections:
| Item | Stored value |
|---|---|
| RPC over TCP | 0 |
| RPC over named pipes | 1 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC] ; Options (use only one) ; RPC over TCP "RpcUseNamedPipeProtocol"=dword:00000000 ; RPC over named pipes "RpcUseNamedPipeProtocol"=dword:00000001
CMD
:: Options (use only one) :: RPC over TCP reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 0 /f :: RPC over named pipes reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null # Options (use only one) # RPC over TCP New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 0 -Force | Out-Null # RPC over named pipes New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 1 -Force | Out-Null
RpcAuthentication
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Use authentication for outgoing RPC connections:
| Item | Stored value |
|---|---|
| Default | 0 |
| Authentication enabled | 1 |
| Authentication disabled | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC] ; Options (use only one) ; Default "RpcAuthentication"=dword:00000000 ; Authentication enabled "RpcAuthentication"=dword:00000001 ; Authentication disabled "RpcAuthentication"=dword:00000002
CMD
:: Options (use only one) :: Default reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 0 /f :: Authentication enabled reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 1 /f :: Authentication disabled reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null # Options (use only one) # Default New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 0 -Force | Out-Null # Authentication enabled New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 1 -Force | Out-Null # Authentication disabled New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 2 -Force | Out-Null