远程过程调用(RPC)(Remote Procedure Call (RPC))是自计算机出现以来就出现的一种技术,它利用了进程间通信技术。它的主要目的是使客户端和服务器能够通过网络相互通信。一些用户在完成升级到较新版本的Windows 10后可能会注意到执行任何远程命令失败并显示错误消息RPC 服务器不可用(The RPC server is unavailable)- 在升级之前这些远程命令成功执行。在这篇文章中,我们将确定潜在原因,然后提供您可以尝试帮助解决此问题的可能解决方案。
错误消息The RPC Server is available(The RPC Server is unavailable )可由以下任何一种触发:
- RPC所需的一项或多项服务已禁用。
- 远程协助被防火墙(Firewall)禁用。
- IPV6或文件打印机共享(File Printer Sharing)已禁用。
- IP 地址使RPC服务器崩溃。
- RPC服务通过Registry被禁用。
阅读(Read):如何解决远程过程调用错误和问题。
RPC服务器在(RPC)Windows 11/10中不可用
如果您遇到此错误,可以尝试以下推荐的解决方案。
- 检查计算机上的 RPC 服务
- 在防火墙(Firewall)中启用Remote Desktop/Assistance
- 将启动选择(Change Startup Selection)从选择性(Selective)启动更改为正常(Normal)启动
- 为连接的网络启用IPV6和文件(File)和打印机共享(Printer Sharing)
- 刷新 DNS 和更新
- 强制 RPC(Force RPC)服务开始使用注册表编辑器(Registry Editor)。
现在,让我们深入研究这些解决方案的详细步骤。
1]检查您计算机上的RPC服务(Check RPC)
此解决方案意味着与其他第三方应用程序发生冲突或更改系统系统可能会强制RPC服务从默认 ( Automatic ) 值变为手动值。这意味着RPC可能不会在需要时自动启动。
要检查计算机上的RPC服务,请执行以下操作:
- 按 Windows + R,在对话框中键入services.msc ,然后按 Enter。(services.msc)
- 进入“服务(Services)”窗口后,搜索以下进程:
Remote Procedure Call (RPC)
RPC Endpoint Mapper or Remote Procedure Call (RPC) Locator
DCOM Service Process Launcher
- 右键单击每个服务,然后选择Properties。
- 进入属性后,确保服务已启动 (Started ),并且 启动类型 (Startup type )设置为 自动(Automatic)。
- 保存更改并退出。
重新启动计算机并查看问题是否已解决。
2]在防火墙(Firewall)中启用Remote Desktop/Assistance
要在您的计算机上的防火墙中允许远程协助(Remote Assistance),请执行以下操作:
- 按 Windows 键 + R,在对话框中键入control ,然后按 Enter。(control)
- 弹出控制面板后,在窗口右上角的搜索栏中键入Firewall ,然后(Firewall )按 Enter(Enter)。
- 从结果中,单击Allow an app through Windows Firewall ,这是 Windows Firewall 下的一个子 类别(Windows Firewall)。
- 单击更改设置 (Change settings )并确保检查强制RPC的条目,例如远程协助(Remote Assistance)。
重新启动计算机并查看问题是否已解决。
3]将启动选择(Change Startup Selection)从选择性(Selective)启动更改为正常(Normal)启动
选择性启动是一种启动方法,它允许您的计算机在加载最少的项目的情况下打开。这通常在对可能涉及其他第三方应用程序的计算机问题进行故障排除时完成。但是,每当您使用选择性启动启动时,您的计算机也不会将所有RPC组件加载到您的计算机上。在这种情况下,我们将选择正常启动,看看是否能解决问题。就是这样:
- 按 Windows 键 + R,在对话框中键入msconfig ,然后按 Enter。(msconfig)
- 进入启动配置后,选择选项卡General 并选择选项 Normal startup。
- 单击应用(Apply)>确定(OK )以保存更改并退出。
系统将提示您重新启动。立即使用弹出窗口重新启动并检查错误消息是否已解决。(Restart)
4]为连接的网络启用IPV6(Enable IPV6)和文件(File)和打印机共享(Printer Sharing)
在某些情况下, 由于一项或多项设置导致网络连接中断,您可能会遇到错误 1722:RPC 服务器不可用 的问题。(Error 1722: The RPC server is unavailable )在这种情况下,为连接的网络启用IPV6和文件(File)和打印机共享(Printer Sharing)可以解决问题。请执行下列操作:
- 按Windows key + R,然后在“运行”对话框中键入ncpa.cpl ,然后按 Enter (ncpa.cpl)r 打开“ 网络连接(Network Connections)” 窗口。
- 在“网络连接(Network Connections)”窗口中,右键单击您当前连接的网络并点击“属性”。(Properties.)
- 进入网络连接的属性(Properties)后,转到网络(Networking)选项卡并向下滚动项目列表。
- 找到Microsoft 网络(Printer Sharing for Microsoft Networks) 和 Internet Protocol Version 6 (TCP/IPv6) 文件和(File and) 打印机共享,并确保选中两个关联的框。
- 单击确定(Ok) 以保存更改。
重新启动计算机,看看问题是否在下次启动时得到解决。
5]刷新DNS和更新
此解决方案要求您在继续刷新DNS并更新连接之前确保RPC连接中涉及的服务正在运行(如上面的解决方案 1 中所述)。(RPC)
如果您确定所需的服务正在运行,请按照以下说明刷新 DNS(flush the DNS)并更新连接。
- 在提升模式下启动命令提示符(Launch command prompt in elevated mode)。
- 在提升的命令(Command)提示符内,键入以下命令并按Enter以刷新当前 IP 配置:
ipconfig /flushdns
- 成功注册命令后,键入以下命令并按Enter 以更新 IP 配置:
ipconfig /renew
更新 IP 后,关闭提升的命令提示符(Command Prompt)并执行远程命令,看看问题是否已解决。
6]强制RPC(Force RPC)服务开始使用注册表编辑器(Registry Editor)
要使用注册表编辑器(Registry Editor)强制启动RPC服务,请执行以下操作:
- 启动注册表编辑器。
- 在注册表编辑器(Registry Editor)中,使用左侧窗格导航到以下位置:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs
- 选择RpcSs 键后,向下移动到右侧窗格并双击 Start以编辑其属性。
- 在属性框中, 将 Base设置 为 Hexadecimal ,将 Value 数据(Value data) 设置为 2。
- 单击确定( OK )以启用 删除过程调用 (RPC)(Remove Procedure Call (RPC))。
接下来,使用左侧窗格或顶部的导航栏(粘贴注册表路径并按Enter)导航到此位置:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcomLaunch
- 到达该位置后,从右侧窗格中双击开始。(Start)
- 然后,将Base设置 为 Hexadecimal ,将 value data 设置为 2。
- 单击OK以启用DCOM Server Process Launcher。
最后,使用顶部的导航栏或使用左侧窗格导航到以下位置:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper
- 移至右侧窗格并双击开始。(Start.)
- 然后,将 Base设置 为 Hexadecimal ,将 Value Data 设置为 2。
- 单击确定(OK)。
关闭注册表编辑器(Registry Editor),重新启动计算机,然后在下次系统启动时查看“ RPC 服务器不可用”(The RPC server is unavailable’)问题是否已解决。
如果您收到,请检查这些相关帖子:(Check these related posts if you receive:)
- 如何修复远程过程调用错误和问题
- Microsoft Store 应用程序的远程过程调用失败错误
- 将 PIN 作为登录选项时远程过程调用失败
- 使用 DISM 时远程过程调用失败错误(The remote procedure call failed error while using DISM)。
Fix The RPC server is unavailable error in Windows 10
Remote Procedure Call (RPC) is a technology present since the emergence of computers and utilizes the interprocess communication technique. Its primary purpose is to enable a client and a server to communicate with each other over the network. Some users after completing an upgrade to a newer version of Windows 10 might notice that executing any remote command fails with the error message The RPC server is unavailable – prior to the upgrade these remote commands execute successfully. In this post, we will identify the potential causes and then provide the possible solutions that you can try to help remediate this issue.
The error message The RPC Server is unavailable can be triggered by any of the following:
- One or more services required by RPC are disabled.
- Remote assistance is disabled by the Firewall.
- IPV6 or File Printer Sharing is disabled.
- The IP address is crashing the RPC server.
- RPC services are disabled via Registry.
Read: How to troubleshoot Remote Procedure Call errors & problems.
The RPC server is unavailable in Windows 11/10
If you are faced with this error, you can try the recommended solutions below.
- Check RPC service on your computer
- Enable Remote Desktop/Assistance in Firewall
- Change Startup Selection from Selective startup to Normal startup
- Enable IPV6 and File & Printer Sharing for the connected network
- Flush DNS & Renew
- Force RPC services to start using Registry Editor.
Now, let’s delve into the detailed steps of these solutions.
1] Check RPC service on your computer
This solution implies that conflicts with other third-party applications or changing the system systems might force the RPC service to go from the default (Automatic) value to manual. This means that RPC might not start automatically when needed.
To check RPC service on your computer, do the following:
- Press Windows + R, type services.msc in the dialog box and hit Enter.
- Once in the Services window, search for the following processes:
Remote Procedure Call (RPC)
RPC Endpoint Mapper or Remote Procedure Call (RPC) Locator
DCOM Service Process Launcher
- Right-click on each service one by one and select Properties.
- Once in properties, make sure that the service is Started and the Startup type is set as Automatic.
- Save changes and exit.
Restart your computer and see if the issue is resolved.
2] Enable Remote Desktop/Assistance in Firewall
To allow Remote Assistance in firewall on your computer, do the following:
- Press Windows key + R, type control in the dialog box and hit Enter.
- Once the control panel pops up, type Firewall in the search bar at the top-right side of the window and hit Enter.
- From the results, click on Allow an app through Windows Firewall which is a subcategory underneath Windows Firewall.
- Click on Change settings and make sure that entries enforcing RPC are checked such as Remote Assistance.
Restart your computer and see if the issue is resolved.
3] Change Startup Selection from Selective startup to Normal startup
The selective startup is a booting method which allows your computer to turn on with a minimal number of items loaded. This is usually done when troubleshooting issues with your computer which might involve other third-party applications. However, whenever you boot using selective startup, your computer will also not load all the RPC components onto your computer. In this case, we will select the normal startup and see if this fixes the issue. Here’s how:
- Press Windows key + R, type msconfig in the dialog box and hit Enter.
- Once in the startup configuration, select the tab General and choose the option Normal startup.
- Click Apply > OK to save changes and exit.
You will be prompted for a restart. Restart immediately using the popped-up window and check if the error message is resolved.
4] Enable IPV6 and File & Printer Sharing for the connected network
In some cases, you might encounter the Error 1722: The RPC server is unavailable issue in instances where there’s a network connection interruption caused by one or multiple settings. In this case, enabling IPV6 and File & Printer Sharing for the connected network could resolve the issue. Do the following:
- Press Windows key + R and then type ncpa.cpl in the Run dialog box and hit Enter to open up the Network Connections window.
- Inside the Network Connections window, right-click on the network that you’re currently connected to and hit Properties.
- Once you get to the Properties of your network connection, go to the Networking tab and scroll down through the list of items.
- Locate File and Printer Sharing for Microsoft Networks and Internet Protocol Version 6 (TCP/IPv6) and make sure that both associated boxes are checked.
- Click Ok to save the changes.
Restart your computer and see if the issue is resolved at the next startup.
5] Flush DNS & Renew
This solution requires you to ensure that the services involved in the RPC connection are running (as outlined in solution 1 above) before you proceed to flush the DNS and renew the connection.
If you’re certain that the required services are running, then follow the instructions below to flush the DNS and renew the connection.
ipconfig /flushdns
- Once the command is successfully registered, type the following command and hit Enter to renew the IP Configuration:
ipconfig /renew
Once the IP has been renewed, close the elevated Command Prompt and execute remote commands and see if the issue has been resolved.
6] Force RPC services to start using Registry Editor
To use Registry Editor to force RPC services to start, do the following:
- Launch Registry Editor.
- Inside the Registry Editor, use the left-hand pane to navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs
- With the RpcSs key selected, move down to the right-hand pane and double-click on Start to edit its properties.
- In the properties box, set the Base to Hexadecimal and the Value data to 2.
- Click OK to enable the Remove Procedure Call (RPC).
Next, use the left-hand pane or the navigation bar at the top (paste the registry path and hit Enter) to navigate to this location:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcomLaunch
- Once you get to that location, double-click on Start from the right-hand pane.
- Then, set the Base to Hexadecimal and the value data to 2.
- Click OK in order to enable the DCOM Server Process Launcher.
Lastly, navigate to the following location by using the navigation bar at the top or by using the left-hand pane:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper
- Move over to the right-hand pane and double-click on Start.
- Then, set the Base to Hexadecimal and the Value Data to 2.
- Click OK.
Close the Registry Editor, restart your computer and see if the ‘The RPC server is unavailable’ issue has been resolved at the next system startup.
Check these related posts if you receive:
- How to fix Remote Procedure Call errors & problems
- The Remote Procedure Call Failed error for Microsoft Store apps
- The Remote Procedure Call Failed while making PIN as Sign-in Option
- The remote procedure call failed error while using DISM.