Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to connect via Remote Desktop Connection to a windows 7 machine without locking the remote computer (I want to use the same logged in user)? Or is it possible to release the lock after the remote desktop session is closed?

share|improve this question

Just run this from a remote session:

tscon %sessionname% /dest:console
share|improve this answer
Get the error Sessionname %sessionname% not found, any ideas? Guess it is not defined under Windows 8 – Felix Oct 27 '13 at 11:06
Not sure about Windows 8, this worked for Windows 7. – Ryan Oct 28 '13 at 18:56
@phil I got that 'error' from his ans on 7 too. Apparently… For XP: tscon 0 /dest:console For 7: tscon 1 /dest:console <-- run on the remote machine. BUT.. this is just so that when the client(mstsc.exe) computer disconnects from the comp it is viewing, then it won't lock. So you disconnect by running that command on the comp you are viewing. But that method won't stop it locking the screen when you log in. – barlop Jun 6 '14 at 9:26

You can use this PowerShell script, which also supports Windows 8:

$server   = 'MyServer'
$username = $env:USERNAME

$session = ((quser /server:$server | ? { $_ -match $username }) -split ' +')[2]

tscon $session /dest:console
share|improve this answer
This didn't work for me at all. I just get "access is denied." It seems like it is trying to match the session on the other end with your local username? But I want to connect to the console session, which could be logged in as a different user. – Dan Jan 6 at 18:13
@Dan So why are you using the $env:USERNAME if you don't want to use it? Use the username you want to use instead. You should always think while copy&pasting anything. It may cause you pretty bad times if you just execute everything you find somewhere. – Dawid Ferenczy Apr 20 at 15:12
@Dawid. Um, thanks? I looked at the script and it is pretty harmless. I chose to run it, wondering how it could work. Turns out, it doesn't. So I made a note of that. Bottom line is the script doesn't specify what situations it works in (probably domain user logged on as the same user on that machine). I did try it with a different username, but that didn't work either. – Dan Apr 26 at 19:10

As far as I know, it's not possible to prevent Remote Desktop Connection from locking the computer, but Ultra VNC allows you to remote control another machine without locking it.

share|improve this answer
Ultra VNC is much slower which prevents me from using it – yossis Dec 8 '09 at 21:46
It IS possible... see Felix's answer – JoelFan Aug 12 '15 at 15:16

Take a look at remote assistance. It basically uses the same remote desktop technology under the hood.

You go into the help and support area and create a remote assistance request you can send to the person you want to remote at the same time.

Alternatively you could use and install LogmeinFree which enables you to remote control a users pc at the same time they;re using it.

share|improve this answer
Remote assistance requires renewing the ticket, no? – yossis Dec 8 '09 at 21:47

As an alternative you can use Gbridge: "Gbridge is a free software that lets you remotely control PCs, sync folders, share files, and chat securely and easily. An extention of Google's gtalk service, Gbridge automatically forms a collaborative, encrypted VPN (Virtual Private Network) that connects your computers and your friends' computers directly and securely. Gbridge has many unique features."

share|improve this answer

It can't be done with RDC itself, you'll need to use a third party tool like TeamViewer. You technically can use remote assistance, but once you're out of requests you can't do anything.

share|improve this answer
TeamViewer looks like a nice app, but I just tested it and it's not completely free and much slower than remote desktop (even when used in a LAN) – yossis Dec 8 '09 at 22:35

Honestly, I would just use RealVNC, I feel its the best remote desktop tool out there. Its very fast, dont get any of the lag with UltraVNC. RealVNC is also excellent when remoting in your computer from outside your house.

share|improve this answer
As much as I'd like to recommend RealVNC (or any VNC for that matter), I can't (despite having been a very early user of it). RD connections feel much more responsive, especially over bandwidth constrained links. – Brian Knoblauch Dec 8 '09 at 16:19
This was my experience also. Remote desktop is much faster, and I yet to find other alternatives (in terms of performance) – yossis Dec 8 '09 at 21:50

Mentioned in another answer, but has a free version, and allows you to share the connection with the local user or blank the screen. I have found the response time fairly decent over slower connections, but the graphics quality goes down when speed does.

share|improve this answer

refer to

If you need to unlock the remote computer after closing the Remote Desktop Connection, here’s a trick which you can use to force RDP to disconnect without locking the session and logged local user back in on the local console screen upon disconnection of Remote Desktop Connection.

On the remote system connected through RDC (not on your computer which RDC is initialized to connect to remote system), open a Command Prompt window as administrator, then run the command depending on the Windows operating system that is running on the remote system.

On Windows XP:

tscon 0 /dest:console

On Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 or newer:

tscon 1 /dest:console

On Windows Server:

tscon %sessionname% /dest:console

No Locking Local Console when Using Remote Desktop Connection

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .