How to switch RPC Connection Protocol between TCP and Named Pipes on Windows 11 22H2 Network Printing

bardimin pic

Bardimin

December 19, 2022
group policy rpc over tcp

How to switch RPC Connection Protocol between TCP and Named Pipes on Windows 11 22H2 Network Printing

Home » Blogs » Windows » Troubleshooting » How to switch RPC Connection Protocol between TCP and Named Pipes on Windows 11 22H2 Network Printing

In Windows 11 version 22H2, Microsoft modified standard printing communications for -client connections.

The Printing service in Windows 11 has been modified from “RPC over Named Pipesto “RPC over TCP” on version 22H2. RPC over Named Pipes is no longer the default and RPC over TCP is now the default.

Microsoft claims that this new modification uses more modern and secure communication techniques and will help improve printer . Modifications can affect how Windows-based devices communicate when printing and perform tasks related to printing.

Most configurations for Household use, where the printer is directly connected to a Windows PC, will not be affected. Such changes may cause problems for business or office use and Windows users who print over a , such as when using a dedicated print or connecting to another computer to print.

When printing, Windows 11 version 22H2 includes modifications to the print component that change the way Windows PCs communicate with each other. Modifications apply, for example, when you print to a printer that is shared by a print server or other network device.

Administrators have the option to personalize communications related to printing. Using Group Policy or the Windows Registry, administrators can change the default settings. This includes converting the printer communication to RPC over Named Pipes and configuring the spooler server to also listen to RPC over Named Pipes communication.  

How to switch RPC Connection Protocol on Network Printing via Group Policy

  1. Open the “Group Policy Editor“.  You can open it by using the keyboard shortcut (WIN + R), then type “” and click the OK button.
  2. Next, in the Group Policy Editor, navigate to “Computer Configuration >> Administrative Templates >> Printers“.
group policy rpc over tcp
  1. In the right-hand panel, find and double-click “Configure RPC connection settings” to edit it.
  2. Then in the dialog box, select “Enabled“.
  3. And on the RPC , select “RPC over named pipes” to use the old protocol. The default value in this setting is “RPC over TCP”, Windows will use this protocol if you do not set it.
  4. Click the OK button to save the changes.

How to switch RPC Connection Protocol on Network Printing via Windows Registry

  1. To use “RPC over named pipes” on client-server communication, open (admin) and run the command:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcProtocols /t REG_DWORD /d 0x7 /f
  1. To enable listening for incoming connections “RPC over named pipes“, open (admin) and run the command:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcProtocols /t REG_DWORD /d 0x7 /f
  1. To use the specific connection  port “RPC over named pipes, open Command Prompt (admin) and run the command:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcTcpPort /t REG_DWORD /d <port number> /f
  1. To enforce Kerberos authentication, open Command Prompt (admin) and run the command:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v ForceKerberosForRpc /t REG_DWORD /d 1 /f
link nyemin

Latest Articles

How to Sync Files between Different Computers Easily and Quickly

How to Sync Files between Different Computers Easily and Quickly

Have you ever had trouble syncing files between different computers? Do you want to have the same file on all your computers without having to copy and paste it manually? Do you want to know how to synchronize files between different computers easily and quickly? If...

How to Display Caps Lock Indicator on Windows 11 Screen

How to Display Caps Lock Indicator on Windows 11 Screen

Do you often type in uppercase letters accidentally because you don't realize that the Caps Lock key is active? Do you have trouble seeing the Caps Lock indicator on your keyboard because it's too small or not there at all? Do you want to get visual or audible...

How to Find Out a New or Used Hard Drive Easily and Accurately

How to Find Out a New or Used Hard Drive Easily and Accurately

A hard drive is one of the important components of a computer because it functions as a data storage medium. However, not all hard drives sold in the market are new hard drives. There are also used hard drives that are sold at a cheaper price but have a higher risk of...

How to Enter Full-Screen Mode in Windows 11 Easily and Quickly

How to Enter Full-Screen Mode in Windows 11 Easily and Quickly

One feature you can enjoy in Windows 11 is the full-screen mode, which lets you maximize your screen space by hiding unnecessary elements, such as the taskbar, menus, and address bar. Full-screen mode can enhance your experience when using apps, watching videos,...

What impact does the CPU run 100% for a long time?

What impact does the CPU run 100% for a long time?

If you've ever experienced your CPU operating at 100% for any length of time, you may wonder if this can damage your computer's hardware. The CPU (Central Processing Unit) is the main component of the computer that carries out program instructions. The CPU has a...