Definir configurações de conexão RPC: valor do Registro RpcUseNamedPipeProtocol e mais 1ComputadorHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC

ID da política
ConfigureRpcConnectionPolicy
Escopo
Configuração do Computador
Compatível com
Pelo menos Windows Server 2016, Windows 10
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Impressoras

Registro

RpcUseNamedPipeProtocol

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Protocolo a ser usado para conexões RPC de saída:
Opções
ItemValor armazenado
RPC sobre TCP0
RPC sobre pipes nomeados1
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; RPC sobre TCP
"RpcUseNamedPipeProtocol"=dword:00000000
; RPC sobre pipes nomeados
"RpcUseNamedPipeProtocol"=dword:00000001
CMD
:: Opções (use apenas uma)

:: RPC sobre TCP
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 0 /f
:: RPC sobre pipes nomeados
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 1 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Opções (use apenas uma)
# RPC sobre TCP
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 0 -Force | Out-Null
# RPC sobre pipes nomeados
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 1 -Force | Out-Null

RpcAuthentication

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Use a autenticação para conexões RPC de saída:
Opções
ItemValor armazenado
Padrão0
Autenticação habilitada1
Autenticação desabilitada2
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Padrão
"RpcAuthentication"=dword:00000000
; Autenticação habilitada
"RpcAuthentication"=dword:00000001
; Autenticação desabilitada
"RpcAuthentication"=dword:00000002
CMD
:: Opções (use apenas uma)

:: Padrão
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 0 /f
:: Autenticação habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 1 /f
:: Autenticação desabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Opções (use apenas uma)
# Padrão
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 0 -Force | Out-Null
# Autenticação habilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 1 -Force | Out-Null
# Autenticação desabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 2 -Force | Out-Null