Score:1

Can a service failing to start prevent login?

in flag

I'm trying to pinpoint a login issue for a user. When RDPing into a Windows Server 2008 R2 server, they got a partial error message saying Login Failed. You are. I assume this is supposed to be You are connected to the remote computer. However, an error occurred while an initial user program was starting, so you are being logged off., which seems to be a possible error message.

I checked into the event logs, and compared a successful authentication from the same user with the failed ones. The sequence of process created events show that in the successful authentication, explorer.exe was started after userinit.exe, then some user specific processes. In the failed authentications, the process sequence stopped as userinit.exe.

Another difference between successful and failed authentications is the start of the Portable Device Enumerator Service service. During successful authentications, it starts normally, while during failed authentications it fails, with the following error message:

The Portable Device Enumerator Service service failed to start due to the following error:

A thread could not be created for the service.

Could this be the cause of the login sequence stopping and the user being unable to login? Or is it more probable that the cause of this error ("a thread could not be created") also caused other issues? And how do I more details about this issue, or even its source?

Score:1
ca flag

If the shell (exporer.exe, in this case) crashes, you can not login. So the real question is what is crashing the shell, and why

From here:

The Portable Device Enumerator Service enforces group policy for removable mass-storage devices

It seems at least plausible for a crashing Portable Device Enumerator Service to bring down the shell. I would check what portable device the user shares withing RDP, and retrying without them.

Nico avatar
in flag
Ah that's an interesting angle, I will look into this. However, shouldn't this potentially cause the service to start, then fail? Here, it seems the service doesn't even start
shodanshok avatar
ca flag
@Nico true, but logon without sharing any USB mass storage device is simple enough I would give it a try.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.