Ошибка “
Сервер RPC недоступен
” (
The RPC server is unavailable
) появляется в Windows при ошибке коммуникации между двумя компьютерами по сети, когда компьютер (клиент RPC) не может подключиться к удаленному компьютеру (сервер RPC). В результате программа, которую вы запустили, не работает и возвращает ошибку, т.к. не можете получить данные с удаленного сервера. В этой статье мы разберем наиболее частые проблемы, которые могут препятствовать нормальному взаимодействию компьютеров через сеть по протоколу RPC.
Протокол RPC (Remote Process Call, удаленный вызов процедур) – это распространённый протокол взаимодействия приложений в локальной сети. В основном он используется для обмена данными с удалённым компьютерам, но есть некоторые программы, которые используют RPC для локальных взаимодействий между приложением и запущенной локально службой.
В типовом сеансе клиент RPC подключается к службе RPC Endpoint Mapper (сопоставления конечных точек) на RPC сервере по TCP порту 135 и запрашивает номер порта, на котором запущено нужное ему RPC приложение (служба). Служба RPC Endpoint Mapper возвращает клиенту номер динамического RPC порта, назначенного указанной службе при запуске. Затем RPC клиент взаимодействует с RPC службой по указанному TCP порту.
Если RPC клиент не смог подключиться к RPC серверу, в приложении появится ошибка:
The RPC server is unavailable
В современных версиях Windows (начиная с Windows Vista/2008) используется следующий диапазон динамических RPC портов (Dynamic RPC Port range): 49152 — 65535 (в Windows Server 2003 / XP и ниже использовался другой диапазон 1024 – 65535.
Наиболее распространённые проблемы, из-за которых не работает RPC взаимодействие между компьютерами:
- Удаленный компьютер выключен;
- Не запущены службы RPC на сервере;
- Вы пытаетесь подключиться к RPC серверу по неправильному имени (или как вариант, DNS имени сервера соответствует неверный IP адрес);
- Используются некорректные настройки сетевого подключение на клиенте или сервере;
- RPC трафик между клиентом и сервером блокируется файерволом;
Проверка доступности удаленного компьютера
Убедитесь, что удаленный компьютер включен, отвечает на ping по имени и IP адресу. Если RPC сервер не доступен по имени, проверьте корректность DNS записей и попробуйте сбросить DNS кэш на клиенте:
ipconfig /flushdns
.
Если имя компьютера, на котором запущен RPC-сервер недавно изменилось, попробуйте перерегистрировать его в DNS Active Directory:
ipconfig /registerdns
Проверка служб RPC
Проверьте, что на сервере запущены службы, которые необходимы для обработки входящих RPC подключений:
- Откройте консоль управления службами (services.msc);
- Убедитесь, что следующие службы запущены (статус Running), а тип их запуска – автоматический: Remote Procedure Call (RPC), RPC Endpoint Mapper и DCOM Server Process Launcher;
Если RPC службы отключены и не запускаются, попробуйте активировать их через реестр. Найдите ветки этих служб в реестре и измените значение параметра Start на 2 (автоматический запуск службы):
- Удаленный вызов процедур (RPC) — ветка реестра HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcSs
- Сопоставитель конечных точек RPC — HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcEptMapper
- Модуль запуска процессов DCOM-сервера — HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DcomLaunch
RPC блокируется файерволом (брандмауэром)
Убедитесь, что RPC трафик между компьютерами не блокируется файеволом. Если у вас используется Windows Defender Firewall with Advanced Security, нужно проверить или создать правила, разрешающие RPC трафик. Одно правило, разрешающее доступ к службе RPC Endpoint Mapper по порту TCP/135; второе должно разрешать доступ к RPC службе, которая вам нужна по динамическим RPC портам (RPC Dynamic Ports). Правила нужно создать для всех трех сетевых профилей: Domain, Private и Public.
Проверьте с клиента, что на RPC сервере доступен 135 порт TCP (должен слушаться службой RPC Endpoint Mapper). Можно проверить доступность порта из PowerShell:
Test-NetConnection 192.168.1.201 -port 135
Если RPC порт доступен, должен появится ответ
TcpTestSucceeded:True
.
Вы можете получить список конечных точек RPC (сервисов и приложений), которые зарегистрированы на удаленном компьютере и анонсируются службой RPC Endpoint Mapper с помощью утилиту PortQry
portqry -n 192.168.1.201 -p tcp -e 135
В выводе PortQry можно найти номер порта, назначенный нужной вам службе RPC (она запущена?) и проверить, что этот порт не блокируется с клиента.
Если у вас используется сторонний файервол/антивирус, убедитесь, что он не блокирует RPC трафик и умеет корректно обрабатывать трафик динамических RPC портов.
Проверка сетевых протоколов и настроек
Убедитесь, что на вашем компьютере заданы корректные сетевые настройки: IP адрес, шлюз, маска сети, настройки DNS серверов (можно проверить настройки сети из PowerShell). Проверьте, что в настройках сетевого адаптера, используемого для подключения включены протоколы Internet Protocol Version 6 (TCP/IPv6) и File and Printer Sharing for Microsoft Networks
Некоторые сетевые приложения некорректно работают при отключенном протоколе TCP/IPv6, возвращая ошибку:
1722 The RPC server is unavailable
. Если после включения ipv6 ошибка RPC сохраняется, попробуйте отключить протокол Teredo через реестр:
Создайте в ветке реестра HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters параметр типа DWORD с именем DisabledComponents и значением 8:
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 8
В некоторых случаях приходится получаить дамп трафика на RPC сервера и анализирвать его с помощью Microsoft Network Monitor 3.4 или Message Analyzer.
При подключении к удаленному компьютеру или виртуальной машине, некоторым сетевым устройствам, а также при установке и работе прикладных программ, использующих клиент-серверную архитектуру (в том числе на единственном локальном компьютере) пользователь может получить сообщение об ошибке «Сервер RPC недоступен» (RPC server is unavailable).
В этой инструкции подробно о способах исправить ошибку «Сервер RPC недоступен» в Windows 11 и Windows 10 с фокусом прежде всего на домашнего пользователя, но многие решения универсальны и подойдут для других сценариев.
Службы RPC и связанные с ними службы
Первое что следует проверить при ошибке — работу и тип запуска служб, необходимых для правильной работы протокола удаленного вызова процедур RPC. Некоторые из представленного списка — необходимые, некоторые — опциональны, но в некоторых случаях также способны приводить к ошибке «Сервер RPC недоступен».
- Откройте «Службы Windows», для этого можно нажать клавиши Win+R на клавиатуре (или нажать правой кнопкой мыши по кнопке «Пуск» и выбрать пункт «Выполнить», ввести services.msc и нажать Enter.
- Найдите службы из списка, который приведен ниже после 5-го пункта, убедитесь, что они выполняются, а тип запуска задан верно.
- Если это не так, дважды нажмите мышью по такой службе, измените тип запуска службы и примените настройки.
- Если ошибка RPC возникает при подключении к удаленному компьютеру или виртуальной машине, убедитесь, что и на нем службы настроены правильно.
- После изменения параметров запуска служб, перезагрузите компьютер.
Список служб в формате: Название службы на русском языке (название на английском) — тип запуска по умолчанию:
- Инструментарий управления Windows (Windows Management Instrumentation) — Автоматически
- Локатор удаленного вызова процедур RPC (Remote Procedure Call RPC Locator) — Вручную, можно попробовать поставить «Автоматически».
- Модуль запуска процессов DCOM-сервера (DCOM Server Process Launcher) — Автоматически
- Служба времени Windows (Windows Time service) — Автоматически
- Сопоставитель конечных точек RPC (RPC Endpoint Mapper) — Автоматически
- Удаленный вызов процедур RPC (Remote Procedure Call RPC) — Автоматически
Если для отдельных служб тип запуска выставлен неверно, при этом изменить его в интерфейсе управления службами невозможно, можно использовать редактор реестра.
Для этого: запустите редактор реестра (Win+R — regedit) и перейдите к разделу реестра
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\
В этом разделе реестра измените значение параметра Start на 2 (дважды нажав по параметру и задав новое значение) в следующих подразделах:
- DcomLaunch
- RpcEptMapper
- RpcLocator
- RpcSs
- W32Time
- Winmgmt
Часть параметров могут не изменяться и в реестре, в этой ситуации может помочь изменение прав доступа к разделам реестра.
В справке на официальном сайте Майкрософт приводится ещё две службы, которые могут вызывать ошибку «Сервер RPC недоступен» при входе в Windows :
- Модуль поддержки NetBIOS через TCP/IP (TCP/IP NetBIOS Helper)
- Удаленный реестр (Remote registry)
Протокол IPv6 и общий доступ к файлам и принтерам
Отключенная поддержка IP версии 6 и «Общий доступ к файлами и принтерам для сетей Майкрософт» также могут приводить к сбоям доступа к серверу RPC. Проверьте, включены ли они и, если нет — включите:
- Нажмите клавиши Win+R на клавиатуре, введите ncpa.cpl и нажмите Enter.
- Нажмите правой кнопкой мыши по сетевому подключению и откройте его свойства.
- Отметьте пункты «Общий доступ к файлами и принтерам для сетей Майкрософт» и «IP версии 6» и примените настройки.
Брандмауэр Windows
В части настроек брандмауэра Windows при ошибке доступа к серверу RPC, в зависимости от сценария проблемы возможны разные решения.
Первый вариант:
- В Панели управления (открыть её можно, используя поиск в панели задач) откройте пункт «Брандмауэр Защитника Windows»
- В панели слева нажмите «Разрешение взаимодействия с приложениями или компонентами брандмауэра Защитника Windows».
- Нажмите кнопку «Изменить параметры» и разрешите взаимодействие для «Удаленный помощник».
Если предыдущий метод не помог, попробуйте:
- Открыть порт 135 на локальной и удаленной машине. Подробнее: Как открыть порты в Windows.
- Полностью отключить брандмауэр Windows (возможно, временно, чтобы выяснить, является ли его работа причиной ошибки)
Дополнительные методы решения проблемы
Если предыдущие варианты не помогли, при этом вы уверены, что на сервере (при удаленном подключении к собственным ресурсам или серверам, которые использует ваше ПО) проблем нет, попробуйте следующие варианты решения проблемы:
- Используйте команды в командной строке, запущенной от имени Администратора
ipconfig /flushdns ipconfig /renew
- Если используется профиль сети «Общественная» (Общедоступная), попробуйте переключить её на «Частная» — Как изменить тип сети в Windows 11 и в Windows 10.
- Если вам известен IP-адрес сервера, к которому выполняется подключение, проверьте, доступен ли порт 135 на нем с помощью команды PowerShell (заменив IP-адрес на нужный), при успехе в пункте TcpTestSucceeded должен быть статус «True»
Test-NetConnection 192.168.1.1 -port 135
- При наличии сторонних антивирусов или файрволлов, попробуйте отключить их, или отключить только функции защиты в сети.
- При использовании VPN-сервисов, попробуйте отключить их.
- Попробуйте отключить протокол teredo для IPv6 с помощью команды
netsh interface teredo set state disabled
Чтобы в дальнейшем включить его обратно используйте команду
netsh interface teredo set state enabled
- Учитывайте: если ошибка «Сервер RPC недоступен» возникает при запуске, установке или работе какого-либо прикладного ПО, полученного и модифицированного неофициальными методами, причина может быть в целенаправленной блокировке доступа к серверам лицензирования или иным.
- Проверьте компьютер на наличие вирусов и вредоносных программ, блокировок доступа к сайтам в файле hosts.
The Windows operating system uses certain services to perform dedicated tasks. One of these services is the “Remote Procedure Call,” also known as RPC. This service is responsible for remote communication of the PC with a server on the network, as well as other applications on the same host computer.
If your PC is trying to communicate with another PC on the network, you may have come across the following error message:
The system cannot log you on due to the following error: The RPC server is unavailable.
Thankfully, this can be fixed with some troubleshooting techniques to bring you back on track to perform your task.
This article gives a brief introduction so that you fully understand what RPC is, and you can then proceed to perform several troubleshooting tasks in the given order to fix the issue.
Table of Contents
What is Remote Procedure Call (RPC)?
Remote Procedure Call (RPC) is a protocol that allows Windows components to communicate either with a remote server or between different apps and programs on the same computer. RPC uses dynamic ports to communicate with a server, depending upon the type of service. However, it does still use a primary, static port, with which the initial RPC connection is established. This is TCP port 135.
When a Windows PC, which is the client, attempts to communicate with a server, it requests a dynamic port number on the TCP port 135. The server then responds to the client’s requests and provides an IP address and dynamic port number for the service requested. The client machine then performs all further communication with the service on the provided port.
This occurs during a typical and successful RPC connection. However, if you come across an error as mentioned above, it can be due to several different reasons.
Causes of RPC Server is Unavailable
The “RPC Server is unavailable” error can be encountered due to any and all of the following reasons:
- RPC and/or relevant services are not running.
- Incorrect time/time zone settings.
- Domain Name Server (DNS) is unable to resolve the request and may provide an incorrect IP address.
- Firewall is blocking communication.
- Network connectivity issues.
Now that we understand the potential cause of the error, let us show you how to fix it.
How to Troubleshoot RPC Server is Unavailable
Run RPC and Associated Services
One of the causes of an unsuccessful RPC connection is that the RPC or any of the services required for the connection are disabled. Therefore, we need to check if they are enabled and if not, enable them.
Perform the following steps to check and enable the relevant services on a Windows computer:
- Open the Windows Services console by typing in services.msc in the Run box.
- Here, check if the following services are running:
- DCOM Server Process Launcher
- Remote Procedure Call (RPC)
- RPC Endpoint Mapper
- Remote Registry
- TCP/IP NetBIOS Helper
- If one of these services isn’t running, right-click it and then click Properties from the context menu.
- From the Properties window, select Startup type as Automatic, then click Apply and Ok.
- Now right-click on the service again, and click Start from the context menu.
Once all the mentioned services are running, check to see if you encounter the same error message again. If you still do, perform the following troubleshooting methods:
Note: If you are unable to start these services, resort to the last solution given in this post to perform the Windows Registry trick.
Configure Correct Date and Time
Ensure that your system has the correct date and time configuration for a successful RPC connection. Here is how:
- Open the Date and Time settings by typing in timedate.cpl in Run.
- From that window, click Change time zone, and then select the correct time zone in your area. Click OK when done.
- Now back to the Date and Time window, click Change date and time and configure the correct date and time as per your location. Click OK when done.
- Now click Apply and Ok in the Date and Time window to update the changes.
Fix Domain Name Server Issues
If the methods given above have not resolved your issue, then it may be possible that the Domain Name Server (DNS) on your network may not be configured correctly, and thus your machine is unable to communicate with the remote device.
You can rule this out by pinging the remote device by its name. Here is how:
- Open the Command Prompt with administrative privileges.
- Now type in the following command to ping the remote device while replacing RemoteName with the name of the remote server:
ping <em>RemoteName</em>
- This will now return the IP address of the remote device. Check to see if this is the correct one.
If you find the IP address of the remote device is correct, then the DNS is not the issue, and you can move on to the next section in this post.
However, if you find that the IP address is incorrect, then the problem needs to be fixed.
If your computer is connected to a domain and both the server and the client machines are connected to an Active Directory (AD), you can verify that both of them are using the correct DNS server, which is usually the Domain Controller (DC) itself. If you do not have the right to confirm, consult with your organization’s IT officer.
If the DNS server is also the correct one, you can try re-registering the DNS records by resetting the TCP/IP stack on the client computer. On the server, you can use the ipconfig /registerdns in the Command Prompt to re-register DNS records.
Allow Traffic Through Firewall
It may be possible that the Windows native or a third-party firewall may be blocking remote communication between the client and the server machines for a successful RPC connection. You can check if the firewall is blocking any ports. If so, perform the following steps to allow it:
- Open the firewall configurations in the Control Panel by typing in firewall.cpl in Run.
- From there, click “Allow an app or feature through Windows Defender Firewall” from the left of the window.
- Now check all the boxes in front of Remote Assistance, and then click Ok.
Note: If the option to check the boxes is grayed out, then click Change settings first.
If this does not work for you, you can also temporarily disable Windows Firewall and then try to establish the connection again.
However, if you are using a third-party firewall or security application, then you may need to configure it to allow the RPC service through it or uninstall the tool using dedicated uninstallers.
Check Network Connection
It may be possible that your computer’s network configuration is incorrect which is why it is unable to communicate with the remote server, hence prompting an error message.
Check your network card’s configuration through the following steps:
- Open the Network Connections page in the Control Panel by typing in ncpa.cpl in Run.
- Here, right-click on the network you are using (Wi-Fi or ethernet) and click Properties from the context menu.
- Here, ensure that the boxes next to the following items is checked:
- File and Printer Sharing for Microsoft Networks
- Internet Protocol Version 4 (TCP/IPv4)
- Now double-click “Internet Protocol Version 4 (TCP/IPv4)” and confirm that the IP address(es) are configured correctly, or that “Obtain an IP address automatically” is selected if your network is running a DHCP server.
- Once done, close the window by clicking Apply and Ok.
Once you are sure that your computer’s network configuration is correct, you can also use PortQuery to confirm that the TCP port 135 is listening. Here is how:
- Download the PortQuery application and extract it.
- Now open Command Prompt with administrative privileges.
- Navigate to the extracted folder from within the Command Prompt using the given cmdlet, while replacing Path witht the complete path of the extracted PortQuery folder:
cd /d <em>Path</em>
- Now use the following command to obtain the status of TCP port 135 on the remote server. Replace IPAddress with the IP address of the remote server:
Portqry.exe -n <em>IP Address </em>-e 135
If the status returns as “listening,” it means that the TCP port 135 is open and your connection is sound.
Enable Relevant Services from Windows Registry
If you are unable to start the relevant services using the method discussed above, or none of these troubleshooting methods have worked to resolve your issue, you can perform the following steps to fix the “RPC server is unavailable” issue.
Misconfiguration of critical values in the system’s registry could be fatal for your operating system. Therefore, we insist that you create a system restore point before proceeding forward with the process.
- Open the Windows Registry Editor by typing in regedit in Run.
- Paste the following in the address bar at the top for quick navigation:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcSs
- Here, double-click Start in the right pane and set its Value Data to 2.
- Now paste the following paths one after the other in the address bar (same as in step 2 above) and then set the Value Data of the Start key at each of those locations to 2 (same as in step 3 above).
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DcomLaunc
hComputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcEptMapper
- Once done, restart your computer for the changes to take effect.
Now check to see if you are able to perform the task that you initially wanted to without seeing the error prompt.
Closing Words
We certainly hope that the above methods to resolve the “RPC server is unavailable” error have been helpful. However, if you still encounter this issue, it may be possible that certain Windows Registry items have been corrupted.
You can try and fix your operating system using the SFC, DISM, and CHKDSK utilities. If that does not work, you may need to perform a fresh installation of your Windows operating system to fix the issue.
Ошибка «Сервер RPC недоступен» указывает на проблемы с протоколом удаленного вызова процедур (RPC), который отвечает за обмен данными между различными приложениями и службами Windows. Эта ошибка может проявляться при использовании сетевых приложений, подключении к удалённым устройствам или работе с системными службами. Рассказываем о том, как решить данную проблему.
RPC (Remote Procedure Call) — это технология, обеспечивающая взаимодействие между программами, работающими на одном или нескольких компьютерах. Она позволяет передавать данные между клиентом и сервером, не требуя от пользователя понимания сетевых технологий.
Источник: Itrelease / Протокол RPC
Протокол широко используется в Windows для управления сетевыми соединениями, обмена данными и взаимодействия между службами. Если RPC не функционирует, это может привести к сбоям в работе системы и приложений.
Основные причины ошибки «Сервер RPC недоступен»
Ошибка «Сервер RPC недоступен» возникает из-за сбоев в работе протокола RPC, который отвечает за взаимодействие между службами и приложениями в Windows. Основной причиной может быть отключение или неправильная настройка ключевых служб, таких как «Удалённый вызов процедур (RPC)», «Сопоставитель конечных точек RPC» и «Модуль запуска процессов DCOM-сервера».
Часто проблема связана с блокировкой трафика RPC брандмауэром или антивирусом. Для нормальной работы протокола должны быть открыты порты 135 и диапазон 1024–65535. Если эти соединения заблокированы, система не сможет обмениваться данными.
Источник: Pinterest / Ошибка RPC
Некорректные сетевые настройки, включая проблемы с DNS, отключение протоколов IPv4 или IPv6, также могут вызвать сбой. Это особенно актуально в сетях, где DNS обеспечивает связь между устройствами. Кроме того, вредоносное ПО может нарушать работу RPC, блокируя службы или изменяя параметры сети.
Повреждённые системные файлы или неправильные настройки реестра также являются частыми причинами ошибки. Если значения в реестре, связанные с RPC, изменены или удалены, службы могут стать недоступными, что приводит к сбою.
Как устранить ошибку «Сервер RPC недоступен»
Чтобы исправить ошибку «Сервер RPC недоступен», важно определить её причину и следовать пошаговому руководству. Начните с проверки работы ключевых служб и сетевых настроек, затем переходите к исправлению системных параметров и устранению возможных блокировок. Все действия описаны подробно, чтобы вы могли быстро восстановить работоспособность системы.
Проверка работы служб
Чтобы RPC функционировал корректно, в системе должны быть включены определённые службы. Для этого:
- Нажмите Win + R, введите services.msc и нажмите Enter;
-
В списке служб найдите:
- «Удалённый вызов процедур (RPC)»;
- «Сопоставитель конечных точек RPC»;
- «Модуль запуска процессов DCOM-сервера»;
- Убедитесь, что состояние всех этих служб указано как «Выполняется». Если какая-либо служба остановлена, нажмите на неё правой кнопкой мыши и выберите «Запустить»;
- Проверьте тип запуска. Для всех перечисленных служб он должен быть установлен на «Автоматически». Для изменения нажмите правой кнопкой мыши, выберите «Свойства» и укажите нужный тип запуска.
Источник: CQ / Службы
Если после выполнения этих действий проблема сохраняется, переходите к следующему способу.
Отключение брандмауэра
Брандмауэр Windows и сторонние антивирусы могут блокировать RPC-трафик. Чтобы это проверить:
- Откройте «Панель управления» и перейдите в раздел «Система и безопасность»;
- Зайдите в настройки «Брандмауэра Windows»;
- В левом меню выберите «Включение и отключение брандмауэра Windows»;
- Временно отключите брандмауэр для всех типов сетей.
Источник: CQ / Отключение брандмауэра
После отключения попробуйте выполнить задачу, вызывавшую ошибку. Если проблема исчезла, настройте брандмауэр, добавив службы RPC в список исключений. Для этого:
- Зайдите в «Дополнительные параметры» брандмауэра;
- Создайте новое правило для входящих соединений и укажите порты 135, 1024–65535, которые используются RPC.
Проверка сетевых настроек
Некорректные параметры сети — ещё одна частая причина сбоя RPC. Для исправления:
- Нажмите Win + R, введите ncpa.cpl и нажмите Enter;
- В окне сетевых подключений выберите активное соединение, нажмите правой кнопкой мыши и откройте «Свойства»;
-
Убедитесь, что включены компоненты:
- «Протокол интернета версии 4 (TCP/IPv4)»;
- «Протокол интернета версии 6 (TCP/IPv6)»;
- «Общий доступ к файлам и принтерам для сетей Microsoft»;
- Нажмите «ОК» для сохранения изменений.
Источник: CQ / Сетевые настройки
Если проблема связана с DNS, выполните очистку и обновление кэша командой в командной строке:
- ipconfig /flushdns — очистка кэша DNS;
- ipconfig /registerdns — регистрация DNS-записей.
Сканирование системы на вирусы
Вредоносное ПО может нарушить работу RPC, блокируя службы или модифицируя параметры сети. Используйте современное антивирусное ПО, например Dr.Web или «Лабораторию Касперского», для полной проверки системы. Убедитесь, что базы данных антивируса обновлены, чтобы обнаруживать самые актуальные угрозы.
Восстановление системных файлов
Если системные файлы повреждены, их можно восстановить с помощью встроенных инструментов Windows. Для этого:
- Запустите командную строку от имени администратора;
- Выполните команду sfc /scannow. Этот инструмент проверит целостность файлов и восстановит их при необходимости;
- Для восстановления образа Windows выполните команду DISM /Online /Cleanup-Image /RestoreHealth.
Источник: CQ / Проверка системы
Эти действия помогут устранить сбои, связанные с повреждением системных компонентов.
Редактирование реестра
Если службы RPC не запускаются, проблема может быть в неправильных настройках реестра. Для исправления:
- Нажмите Win + R, введите regedit и нажмите Enter;
-
Перейдите в разделы:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs;
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper;
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcomLaunch;
- Убедитесь, что параметр Start имеет значение «2» (автоматический запуск).
Источник: CQ / Измение реестра
Будьте осторожны, редактируя реестр, так как некорректные изменения могут вызвать серьёзные проблемы.
Сброс системы
Если ничего не помогает, выполните сброс системы до заводских настроек. Это позволит устранить глубокие сбои. Для этого:
- Зайдите в «Параметры» Windows;
- Перейдите в раздел «Обновление и безопасность» → «Восстановление»;
- Нажмите «Начать» в разделе «Сбросить этот компьютер».
Заглавное фото: Wallpaperscraft
Читайте также:
- Как выполнить дефрагментацию диска в Windows 10
- Для чего нужен порт RDP в Windows
- Как исправить ошибку 0x80070570 в Windows
- Windows 10 LTSB — что это такое и где скачать
- Windows Boot Manager — что это такое и как отключить
RPC Server Unavailable (RPC_S_SERVER_UNAVAILABLE) error code 1722 indicates that your Windows computer is having a problem communicating with other remote computers or devices over the network.
There are a number of reasons for this error. RPC error 122 is most commonly seen on domain controllers, it is an indication that AD replication is not working properly.
This article is a troubleshooting guide for RPC Unavailable error 1722 in various cases. The most common causes of RPC errors are:
- Disabled RPC service;
- Name resolution errors (DNS or NetBIOS);
- Network connectivity issues;
- RPC traffic is blocked by the firewall.
Active Directory Replication Error 1722: RPC_S_SERVER_UNAVAILABLE
Error 1722: The RPC server is unavailable can be found in the domain controller’s Event Viewer logs if it cannot contact its replication partner according to the AD topology. This error indicates that there are problems with AD replication.
Try using the Repadmin or dcdiag tool to check the current replication status in Active Directory:
repadmin /replsummary
Or:
repadmin /showrepl
The replication generated an error (1722):
The RPC server is unavailable.
[lon-dc01] DsBindWithSpnEx() failed with error 1722.
Hint. There is a similar error RPC Server is Unavailable 0x800706BA, which is not usually associated with Active Directory domain controllers. This needs to be fixed differently.
Let’s consider the typical reasons for the 1722 AD replication error:
- The domain controller is offline (or broken);
- Some of the domain controller system services are not running;
- Incorrect network configuration and/or blocked ports on firewalls;
- Incorrect DNS configuration on DCs, or invalid entries in the primary DNS domain zone;
- Poor network performance and/or high latency.
Make sure the target domain controllers are powered on and running the following Windows services:
- COM+ Event System;
- Remote Procedure Call (RPC);
- Active Directory Domain Services;
- DNS Client;
- DFS replication;
- Intersite Messaging;
- Kerberos Key Distribution Center;
- Security Accounts Manager;
- Server;
- Workstation;
- Windows Time;
- Netlogon.
You can use the PowerShell command to quickly check the status of the specified services on a DC:
Get-Service EventSystem, RpcSs,NTDS, Dnscache, Dns, DFSR, IsmServ, Kdc, SamSs, LanmanServer, LanmanWorkstation,W32Time, Netlogon
For example, lon-dc01 is the problematic DC that returns “1722 RPC server unavailable”. First, check the connection to lon-dc01 from the remote DC:
- Check if you can access the shared SYSVOL and NETLOGON folder using the UNC path (\\lon-dc01);
- If they are not available, check the basic network connectivity to the problem DC:
ping lon-dc01 tracert lon-dc01
- Then check that TCP port 135 (RPC locator) on the target DC is not blocked by a firewall. Use the PortQry tool to test the RPC connection to the target DC (according to the last chapter of this post):
Test-NetConnection lon-dc01 –port 135
A common cause of the 1722 replication error is the incorrect DNS configuration on the DC. Check if the correct DNS servers’ IP addresses are specified in the DC network connection settings. The preferred DNS server address should point to another DC in the same AD site, and the alternate is to its own IP address.
Check the DNS health on a problem DC with the dcdiag tool:
DCDIAG /TEST:DNS /V /S:<ProblemDCName>
Hint. Rebooting the domain controller can often fix missing DC entries in DNS, and resolve problems with Netlogon and Sysvol services.
If your domain controllers are running different versions of Windows (for example, 2019 and 2012 R2), you should check to see whether SMBv2 is enabled on the older versions of Windows Server. DCs will not be able to communicate with each other with an RPC Unavailable error if this protocol is disabled.
Get-SmbServerConfiguration | select EnableSMB2Protocol
Once you have resolved the RPC connectivity issues on the DC, force replication using the repadmin /replsummary command. Then run the dcdiag /a /q command and check that it its return no errors.
Fixing RPC Server is Unavailable Error on Windows
On desktop computers running Windows 10 and 11, you may receive the error “1722 The RPC server is unavailable” if the local service/app (RPC client) cannot communicate with the service on the remote computer (RPC server).
In this case, you must check that the services required for the RPC protocol are running on the remote computer:
- Remote Procedure Call (RPC);
- RPC Endpoint Mapper;
- DCOM Server Process Launcher;
Open the Service management console (services.msc), and check if the specified services are in the Running state. If not, start them manually.
You can also use PowerShell to check the status of services:
Get-Service RpcSs,RpcEptMapper,DcomLaunch
Check that TCP port 135 on the domain controller is in Listening state. The svchost process must be listening on this port:
netstat -ano | find "135" Get-Process -Id (Get-NetTCPConnection -LocalPort 135).OwningProcess
Also, some network applications may return error ‘1722 The RPC server is unavailable’ if the IPv6 protocol is disabled on the computer.
Open the properties of your network adapter in the Control Panel (Win + R > ncpa.cpl), and check if Internet Protocol Version 6 (TCP/IPv6) and File and Printer Sharing for Microsoft Network are enabled.
After that, use the following command to disable the Teredo IPv6 tunneling protocol:
netsh interface teredo set state disabled
And clear the DNS cache with the command:
ipconfig /flushdns
The RPC error 1722 may occur while trying to send a document to a shared network printer on a remote computer. In this case, you need to check if the remote computer is powered on, and the Print Spooler service is running on it.
Testing RPC Ports with PortQry
The Remote Procedure Call (RPC) protocol is widely used in Windows for communication between computers. It based on a client-server model. To accept client connections, the following services should be running on the RPC server side:
- RPC Endpoint Mapper: RpcEptMapper – is listening on a static TCP port 135
- Remote Procedure Call (RPC): RpcSs – accepts connections on a dynamic TCP port range (from 49152 to 65535)
RPC sessions work in this way. The client connects to the RPC Endpoint Mapper and requests the dynamic port number assigned to the specific RPC service. RpcEptMapper responds with the IP address and service port number (a random dynamic port is assigned when the service starts).
You can use the portquery command line tool to check connectivity via RPC. (PortQry Command Line Port Scanner).
Check that the RPC port mapper is responding on a remote computer:
portqry -n <problem_server> -e 135
In this example, the RPC Port Mapper service listens on TCP port 135. The service also service returns a list of running RPC endpoints and the ports associated with them (in square brackets). Check if the service you are troubleshooting is on this list. Check that the port assigned to your TCP service is not blocked by firewalls between the client and server.
portqry -n <problem_server> -p tcp -e 49666
Cyril Kardashevsky
I enjoy technology and developing websites. Since 2012 I’m running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.