I've a domain controller running Windows 2003 fully patched. Whenever I login to remote desktop it'll login fine within a few seconds, I can then close the window or logout and then go back to it and it once again logs in fine. If however I leave it idle for ages and my session is automatically locked, I then close the window and reopen it when I need it again later, it takes 30-60 seconds (I've not actually timed it) for me to login as it just hangs with the grey desktop background.
Any idea to what could be causing this or how I could debug it?
Thanks
I think the best bet is to get some more insight in what is happening.
I would suggest the following; On the client:
On the server:
Do a TCP dump and compare it with the client (this will rule out or point out any network problems).
Use regmon and filemon on the console when trying to connect (this will point out missing files or files which are exclusively locked by another process).
Use processexplorer from the console and try to see if a process is consuming more resources then normally necessary.
Currently my crystal ball tells me that it could well be a file being locked by a process which is needed when you try to reconnect to the server.