- Remove From My Forums
-
Question
-
I have a single Server 2012 R2 running RDS. RD Clients can connect and work. This is a clean install and has been running for about 1 month.
However I have experienced the following error 2 days in a row and found the following in the Microsoft-Windows-TerminalServices-SessionBroker Logs with event id 2056, which occurs each time just before the service hangs:
The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database.
Pooled virtual desktop collection name: NULL
Error: Logon to the database failed.When this happens ALL remote sessions hang and eventually disconnect. All works again after restarting the server.
The server is in the connection broker list.
Anyone know why this is happening and how to fix it?
-
Edited by
Wednesday, August 26, 2015 12:48 PM
-
Edited by
Answers
-
Auto update is enabled on server so I presume all KB’s are installed.
The error occurred again this week. I noticed that the DNS setting on the server interface was not pointing to a DNS that would resolve the local machine name. Instead it was pointing to a public DNS which did not resolve this server name. I’ve fixed the
DNS so lets wait and see if that might have been an issue.On a previous occasion one of the admins accidentally changed the server MAC address in the NIC settings which caused the same crash.
-
Proposed as answer by
TP []MVP
Tuesday, September 8, 2015 8:13 AM -
Marked as answer by
Amy Wang_
Tuesday, September 8, 2015 9:54 AM
-
Proposed as answer by
Hi,
I have RDS enabled on Win 2016 R2 Datcenter. I have 2 servers, one runs every role and the other is only RDSH. Everything was working fine, but the server started logging these events in the event log:
Log Name: Microsoft-Windows-TerminalServices-Gateway/Operational
Event ID: 103
The Remote Desktop Gateway service does not have sufficient permissions to access the Secure Sockets Layer (SSL) certificate that is required to accept connections. To resolve this issue, bind (map) a valid SSL
certificate by using RD Gateway Manager. For more information, see «Obtain a certificate for the RD Gateway server» in the RD Gateway Help. The following error occurred: «2148073494».
This is strange because the certificate is not expired and it was working fine, so there is nothing wrong with ther certificate.
The second event which is logged is:
Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Operational
Event ID: 2056
Task Category: RD Connection Broker Database Plugin
Level: Error
User: NETWORK SERVICE
Description:
The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database.
Pooled virtual desktop collection name: NULL
Error: Logon to the database failed.
I added the RDS server to «Windows Authorization Access Group» as suggested by some folks but it did not help.
Hi,
I have RDS enabled on Win 2016 R2 Datcenter. I have 2 servers, one runs every role and the other is only RDSH. Everything was working fine, but the server started logging these events in the event log:
Log Name: Microsoft-Windows-TerminalServices-Gateway/Operational
Event ID: 103
The Remote Desktop Gateway service does not have sufficient permissions to access the Secure Sockets Layer (SSL) certificate that is required to accept connections. To resolve this issue, bind (map) a valid SSL
certificate by using RD Gateway Manager. For more information, see «Obtain a certificate for the RD Gateway server» in the RD Gateway Help. The following error occurred: «2148073494».
This is strange because the certificate is not expired and it was working fine, so there is nothing wrong with ther certificate.
The second event which is logged is:
Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Operational
Event ID: 2056
Task Category: RD Connection Broker Database Plugin
Level: Error
User: NETWORK SERVICE
Description:
The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database.
Pooled virtual desktop collection name: NULL
Error: Logon to the database failed.
I added the RDS server to «Windows Authorization Access Group» as suggested by some folks but it did not help.
- Remove From My Forums
-
Question
-
I have a single Server 2012 R2 running RDS. RD Clients can connect and work. This is a clean install and has been running for about 1 month.
However I have experienced the following error 2 days in a row and found the following in the Microsoft-Windows-TerminalServices-SessionBroker Logs with event id 2056, which occurs each time just before the service hangs:
The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database.
Pooled virtual desktop collection name: NULL
Error: Logon to the database failed.When this happens ALL remote sessions hang and eventually disconnect. All works again after restarting the server.
The server is in the connection broker list.
Anyone know why this is happening and how to fix it?
-
Edited by
Wednesday, August 26, 2015 12:48 PM
-
Edited by
Answers
-
Auto update is enabled on server so I presume all KB’s are installed.
The error occurred again this week. I noticed that the DNS setting on the server interface was not pointing to a DNS that would resolve the local machine name. Instead it was pointing to a public DNS which did not resolve this server name. I’ve fixed the
DNS so lets wait and see if that might have been an issue.On a previous occasion one of the admins accidentally changed the server MAC address in the NIC settings which caused the same crash.
-
Proposed as answer by
TP []MVP
Tuesday, September 8, 2015 8:13 AM -
Marked as answer by
Amy Wang_
Tuesday, September 8, 2015 9:54 AM
-
Proposed as answer by
- Remove From My Forums
-
Question
-
I have a single Server 2012 R2 running RDS. RD Clients can connect and work. This is a clean install and has been running for about 1 month.
However I have experienced the following error 2 days in a row and found the following in the Microsoft-Windows-TerminalServices-SessionBroker Logs with event id 2056, which occurs each time just before the service hangs:
The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database.
Pooled virtual desktop collection name: NULL
Error: Logon to the database failed.When this happens ALL remote sessions hang and eventually disconnect. All works again after restarting the server.
The server is in the connection broker list.
Anyone know why this is happening and how to fix it?
-
Edited by
Wednesday, August 26, 2015 12:48 PM
-
Edited by
Answers
-
Auto update is enabled on server so I presume all KB’s are installed.
The error occurred again this week. I noticed that the DNS setting on the server interface was not pointing to a DNS that would resolve the local machine name. Instead it was pointing to a public DNS which did not resolve this server name. I’ve fixed the
DNS so lets wait and see if that might have been an issue.On a previous occasion one of the admins accidentally changed the server MAC address in the NIC settings which caused the same crash.
-
Proposed as answer by
TP []MVP
Tuesday, September 8, 2015 8:13 AM -
Marked as answer by
Amy Wang_
Tuesday, September 8, 2015 9:54 AM
-
Proposed as answer by
Обновлено 10.07.2020

Добрый день! Уважаемые читатели и гости одного из крупнейших IT порталов по системному администрированию Pyatilistnik.org. В прошлый раз мы с вами распространяли на доменные компьютеры компании библиотеку vcruntime140.dll, средствами групповой политики. Сегодня я хочу рассмотреть еще одну проблему с которой вы можете столкнуться в ходе своей работы, это проблема подключения к RDS ферме. На данном сервере появилась ошибка «The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database».
Описание ситуации
Начали поступать жалобы на подключение к удаленному рабочему столу на базе Windows Server 2016. Пользователи были разные, у кого-то компьютеры на базе Windows 10, кто-то использовал MacOS. Ошибки были такого плана:
We couldn’t connect to the remote PC. Make sure the PC is turned on and connected to the network, and that remote access is enabled. If this keeps happening, contact your network administrator for assistance. Error code: 0X7

Или до более знакомую ошибку в Windows, которую я уже решал в двух статьях:
-
Не удается подключиться к удаленному компьютеру с Windows Server 2008 R2
- Не удается подключиться к удаленному компьютеру с Windows Server 2012 R2

This computer can’t connect to the remote computer. Try connecting again. If the promlem continues, contact the owner of the remote computer or your network administrator.

Как устранять данную проблему
Как я и писал выше, методы описанные с статьях про ошибку с подключением мне не помогли, поэтому я как и любой системный администратор стал искать ошибки в журналах. Хочу еще немного описать свой виртуальный сервер, на нем установлена Windows Server 2016 и локально поднята стандартная установка Remote Desktop Services, все роли несет на себе данный хост. Напоминаю, что логи Windows можно смотреть через «Просмотр событий» или же использовать для этого веб-инструмент Windows Admin Center. Где смотреть логи RDS сервера я рассказывал, меня заинтересовал журнал «Microsoft-Windows-TerminalServices-SessionBroker/Operational«. В нем я обнаружил два интересных события:
Ошибка с кодом ID 2056: The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database. Pooled virtual desktop collection name: NULL. Error: Logon to the database failed.

Так же вы можете еще обнаружить событие ID 770:
Ошибка ID 770: RD Connection Broker failed while adding Target server name.
Farm Name = CRM.
Error: Invalid pointer

Явно видно, что с нашим брокером, что-то не так и он не может воспользоваться своей локальной базой подключений. Изучив данный вопрос с ошибками ID 770 и ID 2056, есть несколько вариантов решения.
- Первое, что я вам советую, это перезагрузить сервер, как ни странно это может помочь в большинстве случаев и будет гораздо быстрее, нежели вы будите заниматься траблшутингом. Если у вас есть активные сеансы на данном RDS сервере, то переведите его в режим стока и оповестите пользователей, о предстоящих работах, чтобы они смогли сохранить все свои данные.
- Если перезагрузка не помогла, то как советуют на одном обсуждении Microsoft, вам необходимо добавить ваш сервер в определенную группу Active Directory.
Ветка обсуждения — https://social.technet.microsoft.com/Forums/Azure/en-US/aef50c99-0f0e-4da2-bc4c-d5435692cb8b/server-2012-rds-remote-desktop-connection-broker-client-failed-to-redirect-the-user?forum=winserver8gen или https://support.microsoft.com/en-us/help/331951/some-applications-and-apis-require-access-to-authorization-information
Откройте оснастку «Active Directory — Пользователи и компьютеры» и перейдите в раздел Bultin и найдите группу «Группа авторизации доступа Windows (Windows Authorization Access Group)». Откройте ее свойства и в членах группы, добавьте ваш сервер.

- Если это не помогло, то с большой вероятностью у вас повредилась локальная база подключений RDCB. Открыть ее можно с помощью инструмента Server Management Studio. В качестве адреса подключения нужно использовать.
\.pipeMICROSOFT##WIDtsqlquery
Удостоверьтесь, что у локальной учетной записи nt authoritynetwork service есть права на базу (sysadmin). На этом у меня все, мы успешно восстановили работу RDS сервера, решили ошибку «The Remote Desktop Connection Broker server could not enumerate the targets for the provider named NULL from the database», короче мир спасен. С вами был Иван Семин, автор и создатель IT портала Pyatilistnik.org.
Что я пытаюсь сделать: у меня есть программное обеспечение, которое несколько пользователей должны использовать в одной системе. Поскольку стандартная установка WinServer2016 может одновременно вместить не более двух пользователей, я погуглил, и мне сказали, что сервер терминалов / RDS-сервер снимет это ограничение, поэтому я попробовал это с помощью некоторых руководств.
Все это происходит в Azure.
Проблема: я думал, что все настроено правильно, но когда я пытаюсь подключить RDP к машине с третьим пользователем, он говорит мне, что слишком много пользователей и что мне нужно отключить одного из них, чтобы продолжить (как было бы, если бы я ничего не сделал вообще).
Что я сделал до сих пор:
-
Установил контроллер домена для моего сервера терминалов и разрешил серверу терминалов присоединяться к домену (настройте контроллер домена в качестве DNS-сервера в VNET, а не в настройках адаптера TCP/IP)
-
В Диспетчере серверов я запустил меню «Роль и функции» и выбрал «Установить RDS», «Быстрый старт», «На основе сеанса», выбрал сервер терминалов.
- Наблюдал за его установкой, затем отключился, какое-то время не мог подключиться, пришлось сбросить конфигурацию подключения в Azure и смог восстановить соединение.
- После входа в систему окно установки открылось снова и сказало мне, что оно все еще что-то делает. Через несколько минут он завершился сообщением статуса «Успешно».
- Установил Licensing Server Role через диспетчер серверов, добавил мою лицензию через диспетчер серверов.
-
открыл gpedit.msc и внес следующие изменения в Конфигурацию компьютера> Административные шаблоны> Компоненты Windows> Узел сеансов удаленных рабочих столов> Лицензирование:
«Использовать указанные серверы лицензий удаленного рабочего стола» > Включено
«Установить режим лицензирования удаленного рабочего стола» > Включено (для каждого устройства) -
Также в gpedit.msc, только в каталоге Host Session Host> Подключения:
Разрешить пользователям подключаться удаленно с помощью RDS: включено
Предел Количество соединений: Включено, Макс. Соединений = 999999
Ограничить пользователей служб удаленных рабочих столов одним сеансом RDS = отключено
Разрешен удаленный запуск незарегистрированных программ: включено
До сих пор не работает. Может быть сброс настроек как-то связан с этим? Или, может быть, я упускаю что-то очевидное? Никогда ранее не использовал и не настраивал RDS, за исключением того, что RDP включался в мои виртуальные машины на Azure…
Проверил журнал событий RDS, обнаружил несколько сообщений об ошибках:
TB-TK-TERMINAL1 2056 Ошибка Microsoft-Windows-TerminalServices-SessionBroker Microsoft-Windows-TerminalServices-SessionBroker/ В рабочем состоянии 06.06.2008
10:53:33Серверу посредника подключений к удаленному рабочему столу не удалось перечислить цели для поставщика с именем NULL из базы данных.
Имя коллекции виртуальных рабочих столов в пуле: NULL Ошибка: сбой входа в базу данных.
Я погуглил это сообщение, но получил только ответы о том, что мой домен старый. Я создал этот домен специально для / для WinServer2016, поэтому сомневаюсь, что это так.
TB-TK-TERMINAL1 1280 Предупреждение Microsoft-Windows-TerminalServices-SessionBroker-Client Microsoft-Windows-TerminalServices-SessionBroker-Client/ Оперативный 06.06.2008
10:55:01Службам удаленных рабочих столов не удалось присоединиться к посреднику подключений на сервере tb-tk-terminal1.domainname.local. Ошибка: текущее асинхронное сообщение было удалено асинхронным диспетчером, потому что есть новое сообщение, которое переопределит текущее.