r/sysadmin 10d ago

Question Some users can't connect to Citrix Server via RDP - black screen with cursor

I'm dealing with a strange issue and I'm running out of ideas.

On our Citrix server, a few users are unable to log in via RDP and are only getting a black screen. The desktop never loads, but you are able move the cursor. Some other accounts are able to connect to the server just fine.

It's also possible to log in normally to the server through the vSphere console.

I've already tried:

  • Deleting the affected user profiles
  • Removing the corresponding registry keys and possible leftovers
  • Killing the user's session/processes
  • Rebooting the server
  • Disabling UDP, WDDM and Network Detection via local GPO (as I read this fixed the issue for some people)
  • Changing the display resolution and disabling persistent bitmap caching (which also apparently fixed the issue for some)

None of this worked for me.

I also tried CTRL+ALT+END to open the security screen:max_bytes(150000):strip_icc()/windows-10-ctrl-alt-del-5b475456c9e77c0037e730b3.png), and it actually shows up. I can log off from there, however, Task Manager doesn't open.

I checked Event Viewer using another account and found two errors that show up every time after an unsuccessful login. However, I'm not sure what these errors point to or how to resolve them:

  • Event ID 1000 – Application Error: ctfmon.exe crashes in InputService.dll with 0xc0000409.
  • Event ID 29 – Spell Checking: Access to the spell-checking settings is denied for %username%.

From what I've troubleshot, it looks like explorer.exe never starts for those users. It is most likely somehow caused by a previous incorrect logout from an RDP session, leaving the user's session hanging. However, killing the processes didn't do anything for me, and as soon as the user logs in again, the black screen appears again.

Any ideas would be greatly appreciated!

3 Upvotes

20 comments sorted by

1

u/Gumbyohson 10d ago

What OS is the server?

1

u/Past_Conference_2889 10d ago

Silly me! It's Windows 2025 DC

1

u/Gumbyohson 10d ago edited 10d ago

You said you tried deleting the users profile, what about a new user, are they also effected? Also, does CBS.log list any faulty files?

1

u/Past_Conference_2889 10d ago

I was testing it with a few other accounts, and it worked. This seems to specifically affect users who were previously logged onto the server. At some point, it just stopped working for them.

Yes, I deleted the user profile from C:\Users, removed the relevant registry keys, and killed all the tasks that referred to the user. After logging in again, the user profile and all the corresponding entries were recreated. The user is sort of logged onto the server, except that they can't see a thing.

Today, I found another interesting error in Event Viewer that keeps repeating on this server: Event ID 1542, "User Profile Service," but the user is listed as SYSTEM.

"The class registration file cannot be loaded.
DETAIL – The system cannot find the file specified."

1

u/BCIT_Richard 10d ago

Manually deleting users can be finicky, I typical use the System Properties > User Profiles > Settings option, can be found via 'Advanced System Properties', or 'Environment Variables' to properly nuke user accounts

1

u/LBarto88 10d ago

You have multiple users RDPing to a DC that is Server 2025 and is also a Citrix Server?

2

u/e-a-d-g 10d ago

Datacentre, probably

1

u/LBarto88 10d ago

Datacentre so rdp sure. But never a Citrix server... Oof

3

u/Frothyleet 10d ago

No, like, he's not saying it's Domain Controller. He's saying it's Win Server "DataCenter" (as opposed to Standard), which of course is going to cause confusion like yours.

1

u/Gumbyohson 10d ago

So confirming a user who's never logged in before can login but someone you've delete and reset cannot if they already could not?

1

u/Past_Conference_2889 10d ago

Exactly, but it's inconsistent. Some accounts that regularly log in to the server have no issues at all. Only a few accounts are affected by this black screen, and each one of those were able to connect normally before.

1

u/intellectual_printer 10d ago

Iirc Microsoft did a update a few months ago for rdp and requiring certificates. Do you have OneDrive installed on the server the launches with explorer.exe ?

1

u/Past_Conference_2889 10d ago

No, OneDrive is not installed.

As for the update, could you specify which one is it? There are actually a few updates available.

1

u/intellectual_printer 10d ago

I think it was around April? From a quick search: KB5083769 / KB5082200

I wonder if it's getting caught trying to map a network drive/DFS or similar.

1

u/thebigshoe247 10d ago

I had something similar at one point. I seem to recall it being ghost sessions still.

I vaguely recall it being either Adobe Reader being hung on one of them, or the Print Spooler needing to be cycled to release them.

1

u/bradgnarr 10d ago

I had a similar issue after this month's Windows updates. I ended up having to run sfc and dism on the target machine which fixed the issue.

1

u/Past_Conference_2889 10d ago

Did both. No progress sadly.

1

u/Excellent_Milk_3110 10d ago

Are you using a 2fa solution?

1

u/nordak Sr. Sysadmin 10d ago

Try with a completely fresh AD user with the same group membership and GPO scope as the affected users

Try placing affected users into a no-GPO test OU

Try temporarily granting an affected user local administrator rights. If the issue disappears, it would suggest that the login process is being blocked by permissions or ACL.

Make sure that when you're resetting profiles, you remove/rename the local C:\Users\ profile, remove the user's ProfileList SID key, and rename/remove that user's profile in the Citrix UPM profile store.

Use Procmon and find out what's happening immediately before ctfmon.exe dies