Configure RPC over TCP port: registry value RpcTcpPortComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC
- Policy ID
- ConfigureRpcTcpPort
- 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
RpcTcpPort
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- RPC over TCP port:
- Value type
- REG_DWORD
- Maximum value
- 65535
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "RpcTcpPort"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcTcpPort" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcTcpPort' -PropertyType DWord -Value '<enter value>' -Force | Out-Null