4

For some reason, when I remote desktop into a windows xp embedded machine it always takes ages to connect. After the first connection, it connects right away.

Is there a way to stop this delay?

Edit - Update..

I tried runnnig a before and after on the services running on the machine and it looks like after the remote desktop has had it's pause and loaded, the following two processes appear:

csrss.exe
winlogon.exe

Presumably these are the two things which are taking a while to fire up? Which begs the question; how can I get them to start up when the machine starts?

Edit2 - Multiple log-ons..

If one user tries to connect and suffers the 20-30 second delay, subsequent users don't see the same delay which supports the theory that there's something loading up once on the host system.

tumchaaditya
  • 3,752
  • 5
  • 41
  • 58
Jon Cage
  • 2,627

2 Answers2

1

Check in the Services applet if the Startup type of the service "Terminal Services" is set to Automatic. If it is set to Manual then change it to Automatic.

In explanation, I think that in Windows XP Embedded this service is by default configured to start on demand, started by winlogon.exe after a delay (about 1 minute I think). It is impossible to change this delay, but one can change the startup type to Automatic, which will then make Remote Desktop come up faster, but slightly slow down the overall boot time.

If for some reason you don't have access to the Services applet, the same manipulation can be done via regedit :

Open the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService and change the value of the Start item from "3" to "2" and reboot.

Another hypothesis : The logged user is being prompted for confirmation.

The delay you are experiencing is then the time given to the logged user to confirm or cancel the automatic logoff of his session.

This can be changed in the Local Group Policy Editor (gpedit.msc) under:
Administrative Templates / Windows components / Terminal Services.

Double-click Set rules of remote control of remote desktop services and choose the Option of Full control without user's permission for the logged user not to be prompted for confirmation. I suggest also to reboot.

If you don't have that policy in XPE, it is also found in the registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
as a DWORD key named Shadow, where value 2 means "Full Control without user's permission".

harrymc
  • 498,455
0

You could log in to the account you want to remote into via the physical machine and then lock the machine (or use "Fast User Switching" if you want to log in to a different account before remoting in).

If the account is already logged in remote desktop connections are pretty quick.

I generally never shut down my work computer or log off of it because of this (I do lock it).

I believe one csrss.exe and winlogon.exe is going to exist for each logged on account on the system. I do know that Windows wants to load your profile before it gives you a useable desktop, and if you are in a domain environment this includes loading your NTUSER.DAT registry hive possibly from a network share, applying GPO policies, and logon scripts.

LawrenceC
  • 75,182