Vista remote desktop session logging off my desktop that I remote into

Posted on 2010-11-30
Last Modified: 2012-05-10
I just upgraded from XP pro to Vista at work. I used to lock my XP machine, then remote in from home and see all of the windows that I had open when I was local to the machine. At the end of the night I would disconnect the remote desktop session and come in the following day and have a locked desktop with all of my windows still open. Now when I remote into my desktop from home, and come into the office the following day, my desktop is logged off and I have to create a new session and try and remember what I was working on.

From the security logs, it appears that my local session is logged off after about 5 minutes after I disconnect the remote session. The entry is an event id of 4647. This change is very very frustrating and I'd really like to find a solution to this, no matter what it takes. I'm a c# novice and would be open to help writing code that blocked log offs if that is my only solution.

Question by:SSAFECS
  • 4
  • 3
LVL 16

Expert Comment

ID: 34243395
What type of server?This appears to be the issue.

Author Comment

ID: 34243428
It's from a vista enterprise laptop (remote) to a vista enterprise desktop (local)

It has to be a configuration issue, as XP did not do this?
LVL 16

Expert Comment

ID: 34246546
Is the local machine behind server?
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.


Author Comment

ID: 34248175
I'm not 100% sure what you mean, it's inside of a network, behind a firewall, a DNS machine etc.

As an update, I remotely RTPed into an XP machine and then RTP from the XP machine into the vista machine and I was able to log into the same Vista session this morning.

Somehow Vista RTP is taking control of a local session or something.
LVL 16

Expert Comment

ID: 34252150
What I mean is at your work do they use a server,because the remote timeout sesion would
have to be adjusted on the server.

Author Comment

ID: 34261344
I'm remoting into another workstation. Do you know where the timeout setting is, I didn't see anything in group policy.

This worked last night, I'll continue to test it throughout the week. I wrapped it in a c# application that blocks logging off without verification first. The same can be done for XP, but the first command is a bit different, it is " tscon 0 /dest:console " instead.

I through the wait commands in, because a few times that I was testing it would release the session before the lock command could run and then it would not lock the machine, so an unlocked desktop was left sitting at the office, not something I wanted to happen. Thanks for the help and encouragement Pete.

tscon.exe RDP-Tcp#0 /dest:console

wait 1

rundll32.exe user32.dll, LockWorkStation

wait 1


Open in new window

LVL 16

Accepted Solution

joinaunion earned 500 total points
ID: 34261624

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remote Access 5 41
Guacamole cut and paste issue 3 46
Cisco VPN Client and Windows 10 9 86
Unable to RDP to windows 10 pro machine 15 74
At the beginning of the year, the IT world was taken hostage by the shareholders of LogMeIn. Their free product, which had been free for ten years, all of the sudden became a "pay" product. Now, I am the first person who will say that software maker…
I've written this article to illustrate how we can implement a Dynamic Multipoint VPN (DMVPN) with both hub and spokes having a dynamically assigned non-broadcast multiple-access (NBMA) network IP (public IP). Here is the basic setup of DMVPN Pha…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now