Обновлено 03.06.2021
Добрый день! Уважаемые читатели и гости одного из крупнейших IT блогов в рунете по системному администрированию Pyatilistnik.org. В прошлый раз мы с вами рассмотрели вопрос, как устраняется ошибка с кодом 28 при подключении оборудования в Windows. Идем далее и сегодня я хочу вам показать новую ошибку с которой я столкнулся на RDS ферме буквально на днях, звучит она так «Не удается повторно подключиться к удаленному сеансу» или в английском варианте «Failed to reconnect to your remote session».
Описание ситуации
У меня есть RDS ферма на базе Windows Server 2019, построенная на виртуальных машинах ESXI. Я начал производить базовое обслуживание серверов, обновление VMware Tools, обновление Hardware Version и конечно же сами пакеты обновления Windows. После включения виртуальной машины и попытке подключиться к ней, чтобы проверить все ли корректно работает я получаю ошибку:
Не удается повторно подключиться к удаленному сеансу (Failed to reconnect to your remote session)
После этого если нажать кнопку «Ok» вас просто выкидывает из данного сеанса и при повторной попытке вы будите наблюдать долгую попытку прорваться.
Решение ошибки «Не удается повторно подключиться к удаленному сеансу»
Начав свое исследование я попытался подключиться через «Console» в интерфейсе vCenter, но там было два пути развития:
- У меня вообще не нажималось сочетание клавиш CTRL+ALT+DELETE, просто не реагировала
- Второе, это после ввода логина и пароля я получал вот такое окно, которое не пропадало, на тот момент я ожидал в среднем 2-4 минуты
Далее я попытался подключиться через Windows Admin Center к данному серверу и посмотреть логи Windows, там было несколько предупреждений и пара ошибок с ID 10016.
ID 307: Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d.
SensorLogonTask was unable to correlate result with a logon event.
Данные ошибки, как оказалось не мешали входу, и тут я начал копать дальше. Меня привлекло предупреждение в самом vCenter, что данная виртуальная машина стала потреблять много CPU. Так как попасть на нее не удавалось, я решил удаленно посмотреть все процессы в системе и определить, какой именно из них выедал ресурсы.
Как удаленно посмотреть процессы на сервере
В результате я увидел, что антивирус Касперского (Kaspersky Anti-Virus worker process) выедал весь процессор.
Пробуем дождаться, когда антивирус, что-то до сканирует, у меня это заняло минут 10, после чего я спокойно подключился по удаленному рабочему столу. Так же если у вас Касперский управляется через сервер, то выключите его на время. Если и через 10 минут не получается войти, то я советую вам произвести принудительную перезагрузку (hard reset), возможно у вас какие-то обновления еще не до установились. Надеюсь, что вы так же найдете свою причину данной ошибки, не забывайте поделиться в комментариях своим решением. С вами был Иван Семин, автор и создатель IT портала Pyatilistnik.org.
- Remove From My Forums
-
Вопрос
-
Automatic registration failed at join phase. Exit code: Unknown HResult Error code: 0x801c001d. Server error: empty. Debug Output:rn joinMode: Join
Все ответы
-
https://social.technet.microsoft.com/Forums/en-US/e094da79-42c0-4b02-a821-2582169073b1/windows-10-1607-microsoftwindowsuser-device-registrationadmin-error-after-joing-a-domain
-
Hi,
In order to help you better, I would like to confirm with your server version. If you connect to Windows Server 2016, you can refer to this link:
Title:
User Device Registration Event ID 304 307http://www.tecfused.com/2017/07/user-device-registration-event-id-304-307/
Note: This is a third-party link and we do not have any guarantees on this website. This is just for your convenience. And Microsoft does not make any guarantees about the content.
Hope these are helpful.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.-
Предложено в качестве ответа
5 декабря 2018 г. 9:09
-
Предложено в качестве ответа
-
Hi,
Was your issue solved?
If yes, would you like to share your solution in order that other community members could find the helpful reply quickly.
If no, please reply and tell us the current situation in order to provide further help.
Best
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com. -
Any update?
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com. -
Hello
I have the same errore , since changing IP on W2008 Server, the clients are not able to login to the server.
i’m able to create new user’s and connect to domain , but if you try to login you get a temp user.
-
Thanks for your responce, but it seems to be related to the latest version WS2016
I have a W2012 R2 , with several W10 and W8 clients. All have the same problem with the login.
I don’t understand why an ip change on the server can affect all the clients in this way
-
#1
Добрый день, заметил в логах windows server 2019 ошибки с кодами 304 и 307, источник события User Device Registration.
Automatic registration failed at join phase.
Exit code: Unknown HResult Error code: 0x801c001d
Server error:
Tenant type: undefined
Registration type: undefined
Debug Output:
joinMode: Join
drsInstance: undefined
registrationType: undefined
tenantType: undefined
tenantId: undefined
configLocation: undefined
errorPhase: discover
adalCorrelationId: undefined
adalLog:
undefined
adalResponseCode: 0x0
и вторая ошибка
Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d.
Регистрация сервера {4991D34B-80A1-4291-83B6-3328366B9097} DCOM не выполнена за отведенное время ожидания.
Подскажите из-зи чего ошибки ?? С виду все работает
-
#2
Еще подозрительные предупреждения обнаружил
Поставщик DMWmiBridgeProv1 зарегистрирован в пространстве имен rootcimv2mdmdmmap инструментария управления Windows и будет использовать учетную запись LocalSystem. Она обладает повышенными привилегиями, поэтому, если поставщик некорректно олицетворяет запросы пользователей, безопасность может оказаться под угрозой.
——
Служба «Update Orchestrator Service» завершена из-за ошибки
Возврат из операции произошел из-за превышения времени ожидания.
-
#3
Руководство по Настройке гибридного присоединения к Azure Active Directory для федеративных доменов
Эти коды событий возникают, когда инфраструктура не готова к гибридному соединению. Когда устройство пытается выполнить гибридное соединение, регистрация завершается неудачно, и события регистрируются.
-
#4
я понял, короче это норма. А по другой ошибке подскажете ?
Skip to content
Microsoft’s identity solutions span across on-premises and cloud-based capabilities. These solutions create a common user identity for authentication and authorization to all resources, regardless of location. This is referred to as a “hybrid identity”. Therefore, Hybrid identity is having a common user identity for authentication and authorization both on-premises and in the cloud. Kindly see the following guides on Pass-Through Authentication: AD Connect Tool status displays inactive, “Pass-Through Authentication sign-in issue, non-routable domain, Invalid username and password for Single Sign-On, and Azure Active Directory integration with on-Premise AD using PTA, and VM environment setup on Hyper-V for Windows Server Active Directory, Azure Active Directory Integration,
To achieve a hybrid identity with Azure AD, one of three authentication methods can be used, depending on your scenarios. The three methods are:
- Password hash synchronization (PHS)
- Pass-through authentication (PTA)
- Federation (AD FS)
When prompted with the following error as shown in the figure below “Automatic registration failed. Failed to look up the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d. See the following link.
This error occurs when the infrastructure is not prepared for Hybrid join. When the device tries to do a Hybrid join, the registration fails, and the events are logged.
- Therefore, the Automatic Device Join runs as a scheduled task whenever someone logs into a server. This can cause a lot of event errors as shown below.

Here is my suggestion:
Basically, if the infrastructure is in a non-Hybrid join environment, these event IDs are expected during Windows 10 deployment. They can be ignored! So they are therefore ignored by me. 🙂 If you have a Hybrid environment and you wish to fix this issue, kindly visit this article “troubleshooting hybrid Azure Active Directory joined devices“.
I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.
So I’ve posted about this before but never figured out what was the cause.
I’m running a 2016 standard server with about 20 workstations, nothing is virtualized.
I have this random gremlin connection issue with my network, its totally random which drives me nuts. Basically, client machines sometimes struggle to contact the server/dc, sometimes on boot there are events in the logs which suggest clients struggling to contact DC on boot and take a long time to login because of it, group policies wont deploy on boot etc. either.
Anyway, the reason im making this post today is because im trying to add a new workstation to the domain in Windows 10. It asks me whats the domain name, i enter it and there is a 50% chance it will say it didnt find the domain, 50% chance it will say enter credentials of someone authorized to contact the domain, and when I do enter the details it says the domain doesnt exist lol. So it just spoke to the domain controller, asked client for login details and then denied it ever talked to it in the first place… i just dont get it. I tried it about 10 times, eventually it let me join the domain but this is the «weirdness» im experiencing.
Error i get is «The machine xxxx attempted to join the domain xxxx but failed. The error code was 1355»
I’m 90% sure this is DNS related, a setting somewhere or something wrong…
Not sure if its related but when I do this…
——
ping -a eblsvr
Pinging EBLSVR.ebldomain.local [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Not
sure why the reverse host name is displaying » ::1:» cant find reference to this
anywhere in DNS, it should display 192.168.0.5, any ideas?
Could this be the cause of my issues?
Anyway here are a list of event log errors i see a lot on random client machines, not everytime they boot just sometimes…
———
Automatic device join pre-check tasks completed. The device can NOT be joined because a domain controller could not be located. The device must be connected to a network with connectivity to an Active Directory domain controller.
———
Automatic registration failed at join phase. Exit code: Unknown HResult Error code: 0x801c001d. Server error: empty. Debug Output:rn joinMode: Join
drsInstance: undefined
registrationType: undefined
tenantType: undefined
tenantId: undefined
configLocation: undefined
errorPhase: discover
adalCorrelationId: undefined
adalLog:
undefined
adalResponseCode: 0x0
.
—————
Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d. See http://go.microsoft.com/fwlink/?LinkId=623042 Opens a new window
—————
NtpClient was unable to set a domain peer to use as a time source because of discovery error. NtpClient will try again in 15 minutes and double the reattempt interval thereafter. The error was: The entry is not found. (0x800706E1)
—————-
Automatic device join pre-check tasks completed. The device can NOT be joined because a domain controller could not be located. The device must be connected to a network with connectivity to an Active Directory domain controller.
———-
SCEP Certificate enrollment for EBLDOMAINMICHELLEX2$ via https://IFX-KeyId-97e5d1cd8b0497c04b4655a869c8f30efa89388d.microsoftaik.azure.net/templates/Aik/scep Opens a new window failed:
SubmitDone
Submit(Request): Bad Request
{«Message»:»No valid TPM EK/Platform cerificate provided in the TPM identity request message.»}
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Date: Wed, 05 Sep 2018 11:44:21 GMT
Pragma: no-cache
Content-Length: 95
Content-Type: application/json; charset=utf-8
Expires: -1
x-ms-request-id: cd8bc0df-afe6-42a6-b518-146a36e6a97e
Strict-Transport-Security: max-age=31536000;includeSubDomains
X-Content-Type-Options: nosniff
Method: POST(6140ms)
Stage: SubmitDone
Bad request (400). 0x80190190 (-2145844848 HTTP_E_STATUS_BAD_REQUEST)
———
The
Group Policy Client Side Extension Folder Redirection was unable to apply one
or more settings because the changes must be processed before system startup or
user logon. The system will wait for Group Policy processing to finish
completely before the next startup or logon for this user, and this may result
in slow startup and boot performance.
———
Folder
redirection policy application has been delayed until the next logon because
the group policy logon optimization is in effect.
———
Group
Policy was unable to add per computer connection \EBLSVRKONICA
MINOLTA Bizhub 554. Error code 0x5. This can occur if the name of the printer
connection is incorrect, or if the print spooler cannot contact the print
server.
————
The
processing of Group Policy failed. Windows could not obtain the name of a
domain controller. This could be caused by a name resolution failure. Verify
your Domain Name System (DNS) is configured and working correctly.
——-
This computer was not able to set up a secure
session with a domain controller in domain EBLDOMAIN due to the following:
There are currently no logon servers
available to service the logon request.
This may lead to authentication problems.
Make sure that this computer is connected to the network. If the problem
persists, please contact your domain administrator.
ADDITIONAL INFO
If
this computer is a domain controller for the specified domain, it sets up the
secure session to the primary domain controller emulator in the specified
domain. Otherwise, this computer sets up the secure session to any domain
controller in the specified domain.
——-
Automatic registration failed at join
phase. Exit code: Unknown HResult Error code: 0x801c001d. Server error:
empty. Debug Output:rn joinMode: Join
drsInstance: undefined
registrationType: undefined
tenantType: undefined
tenantId: undefined
configLocation: undefined
errorPhase: discover
adalCorrelationId: undefined
adalLog:
undefined
adalResponseCode: 0x0
.
————————-
Automatic
registration failed. Failed to lookup the registration service information from
Active Directory. Exit code: Unknown HResult Error code: 0x801c001d. See http://go.microsoft.com/fwlink/?LinkId=623042 Opens a new window
——————
Windows Hello for Business provisioning will not be
launched.
Device is AAD joined ( AADJ or DJ++ ): Not Tested
User has logged on with AAD credentials: No
Windows Hello for Business policy is enabled: Not Tested
Windows Hello for Business post-logon provisioning is
enabled: Not Tested
Local computer meets Windows hello for business hardware
requirements: Not Tested
User is not connected to the machine via Remote Desktop: Yes
User certificate for on premise auth policy is enabled: Not
Tested
Machine is governed by none policy.
See https://go.microsoft.com/fwlink/?linkid=832647 Opens a new window
for more details.
—————
ISAgent
1.0.1.620: Unexpected error: The remote server returned an error: (404) Not
Found.
———————
Dont know if all these errors are related but had this problem for about 6 months now on and off.
Any help is appreciated, thanks.
Windows 10: Event ID 307 and 304 with error code 0x801c001d on Windows 10 device
Discus and support Event ID 307 and 304 with error code 0x801c001d on Windows 10 device in Windows 10 News to solve the problem; [ATTACH]In today’s post, we will identify the cause and then provide possible resolutions to the issue of event ID 307 and event ID 304 with […]
This…
Discussion in ‘Windows 10 News’ started by WinClub, Feb 4, 2020.
-
Event ID 307 and 304 with error code 0x801c001d on Windows 10 device
In today’s post, we will identify the cause and then provide possible resolutions to the issue of event ID 307 and event ID 304 with […]
This post Event ID 307 and 304 with error code 0x801c001d on Windows 10 device is from TheWindowsClub.com.
read more…
-
RS1/14393 Update Roaming Profile Login Error
Have a 2012 R2 domain and I just did the RS1/14393 update last night. Several users with roaming profiles are now experiencing login errors. When they login, they get a blue error message saying «Couldn’t login to your account» and gives the option to dismiss
or sign out. Restarts of the server and workstations have not resolved this. I’ve deleted local cached copies of the user profile without resolution. Only thing I can find in the event logs is under Applications and Services LogsMicrosoftWindowsUser Device
Registration. I’m seeing Error 304 and 307. I also deleted the server side profiles for the user and let it recreate it on next login. I noticed that there is a new v6 profile for 14393 logins.307:
Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d. See http://go.microsoft.com/fwlink/?LinkId=623042
304:
Automatic registration failed at join phase. Exit code: Unknown HResult Error code: 0x801c001d. Server error: empty. Debug Output:rn joinMode: Join
drsInstance: undefined
registrationType: undefined
tenantType: undefined
tenantId: undefined
configLocation: undefined
errorPhase: discover
adalCorrelationId: undefined
adalLog: undefined
adalLog: undefined
adalResponseCode: 0x0
.
-
Critical Event ID 41 with BugCheck Code 307
Hello everyone,
I built my Mom a computer about a year ago now and it’s been working A-OK up until a few weeks ago when the system started blue screening and restarting. I checked event viewer and there is a bugcheckcode associated with these restarts (Event ID 41) and
it is code 307. I don’t BELIEVE that it’s a hardware issue since it only just started happening after months of use with no problems, but I suppose it’s possible that some component is failing. I did run a 24 hour MemTest86 test and everything seems just fine
with the RAM.These restarts seem to be happening when my Mom is NOT at her computer, it’s pretty much idle with just Edge/Chrome open with email and facebook tabs open. She usually just hears the restart beep from another room and then sees that it’s restarted when she
checks the computer.I’m at my wit’s end trying to figure out what is going on. Below is a dropbox link to a zip file which contains:
1) Dumps from the 4 most recent crashes
2) Event Logs
3) Drivers list
4) Services list with statuses
5) A list of most recent windows updates and hotfixes installed
6) Active Processes and tasks lists
7) Ipconfig information
Msinfo32.nfo
And some more details as well. It should have everything one would need to really diagnose this, and unfortunately I just don’t have this level of technical expertise to pinpoint the root cause. Any help that can be provided is greatly appreciated!
Here’s the link: Dropbox — DESKTOP-PR2VS8C-Thu_12_15_2016_145509_35.zip — Simplify your life
-
Event ID 307 and 304 with error code 0x801c001d on Windows 10 device
User Device Registration Error
When I press the Windows key and L (to lock my computer) when I try to log back in there is a trust issue error message.
I checked the event viewer and I am getting a User Device Registration 304 error. It says «Automatic registration failed at join phase. Exit code: Unknown HResult Error code: 0x801c001d. Server Error: empty. Debug Output rn joinMode: Join drsinstance:
undefinedThen in the same event viewer log I get another User Device Registration. This one reads «Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error Code
The only way I can log back (or unlock my computer) is by shutting it completely down. Please help me resolve this issue, this happens so randomly as well.
Please help.
Moved from: Windows / Windows 10 / Performance & system failures
Event ID 307 and 304 with error code 0x801c001d on Windows 10 device
-
Event ID 307 and 304 with error code 0x801c001d on Windows 10 device — Similar Threads — Event 307 304
-
Event error ID 10016 — Visual Studio Code
in Windows 10 Gaming
Event error ID 10016 — Visual Studio Code: Hoping someone can help me out here. Just installed MS VS Code. It opens for a brief moment and then closes. Event viewer shows an error associated with this event being ID: 10016The application-specific permission settings do not grant Local Activation permission for the COM… -
Event error ID 10016 — Visual Studio Code
in Windows 10 Software and Apps
Event error ID 10016 — Visual Studio Code: Hoping someone can help me out here. Just installed MS VS Code. It opens for a brief moment and then closes. Event viewer shows an error associated with this event being ID: 10016The application-specific permission settings do not grant Local Activation permission for the COM… -
Event error ID 10016 — Visual Studio Code
in Windows 10 BSOD Crashes and Debugging
Event error ID 10016 — Visual Studio Code: Hoping someone can help me out here. Just installed MS VS Code. It opens for a brief moment and then closes. Event viewer shows an error associated with this event being ID: 10016The application-specific permission settings do not grant Local Activation permission for the COM… -
Event 41 BugcheckCode 307
in Windows 10 BSOD Crashes and Debugging
Event 41 BugcheckCode 307: My system keeps crashing and gives me the following in event viewer-<Event xmlns=»http://schemas.microsoft.com/win/2004/08/events/event»>
-<System>
<Provider Name=»Microsoft-Windows-Kernel-Power» Guid=»{331c3b3a-2005-44c2-ac5e-77220c37d6b4}» />
<EventID>41</EventID>… -
Windows 10 Error event id 10
in Windows 10 BSOD Crashes and Debugging
Windows 10 Error event id 10: Every 11 seconds i am getting a error reportWhat is causing this?
This is from the event viewer
Event filter with query «//./root/virtualization» could not be reactivated in namespace «SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE TargetInstance ISA…
-
Event ID 219 error when a device is plugged into Windows 10
in Windows 10 News
Event ID 219 error when a device is plugged into Windows 10: [ATTACH]
[ATTACH]In today’s post we will determine the cause and then prescribe the possible solution to the error Event ID 219 when a device is plugged into a Windows 10 computer. When a device is plugged into a Windows 10 computer, […]This post Event ID 219 error when a…
-
Event ID 10005 error (Windows 10)
in Windows 10 Performance & Maintenance
Event ID 10005 error (Windows 10): Hi guys, recently found an event id 10005 error in the event viewer. Is has something to do with CSR Bluetooth service. I have already tried uninstall/ reinstall the CSR Bluetooth stack but the error is still there. Kindly advise how to resolve this error, thanks.83505
-
Event ID 1 warning & Event ID 2 error
in Windows 10 Performance & Maintenance
Event ID 1 warning & Event ID 2 error: Hello,
After Fall Creators update I’m seeing 1 error and 1 warning in the Event Viewer which I’m not able to resolve.Event ID 1
The backing-file for the real-time session «DefenderApiLogger» has reached its maximum size. As a result, new events will not be logged to… -
Event id 10016
in Windows 10 Support
Event id 10016: I, like many other Win10 users, am getting a lot of DCOM Eventid 10016 events logged. I’ve seen a number of explanations (which I haven’t understood) and several solutions. However, I have not seen a clear description of what requests are failing and what the result of the…
Users found this page by searching for:
-
event id 304
,
-
HResult Error code: 0x801c001d
,
-
go.microsoft.com/fwlink/?Linkid=623042
,
- 0x801c001d Chrome compile,
- 0x801c001d,
- automatic registration failed. failed to lookup the registration service information from active directory. exit code: unknown hresult error code: 0x801c001d. see http://go.microsoft.com/fwlink/?linkid=623042,
- windows event 304 0x801c001d









Msinfo32.nfo