How do I prevent lock screen of remote computer when remote RDP connection into the computer is started?

4

How do I prevent lock screen of remote computer when remote RDP connection into the computer is started?

This question “Disable Lock Screen after Remote Desktop session in Windows 10” is for disconnecting so it didn't help.

This question "Remote desktop connection without locking the remote computer" was for Windows 7 and 8, the commands are not working for windows 10; all commands referenced in this question disconnects the rdp session. Additionally, there was no answer selected for that question as it does not supply a valid solution to the question.

Specifically, tscon %sessionname% /dest:console will disconnect the session.

S1r-Lanzelot

Posted 2018-08-24T15:45:36.533

Reputation: 154

1

Possible duplicate of Remote desktop connection without locking the remote computer

– Tetsujin – 2018-08-24T15:52:27.243

@Tetsujin updated - this is not a duplicate. – S1r-Lanzelot – 2018-08-24T16:22:45.603

It's a perfect duplicate - the other just had a get-out clause, 'can I restore as I disconnect?'. Without that get-out clause the answer is [from further down] "You can't". – Tetsujin – 2018-08-24T16:27:20.133

@Tetsujin it would be a perfect duplicate if I was asking in the context of Windows 7. I am asking for Windows 10. – S1r-Lanzelot – 2018-08-24T16:33:13.040

Let's leave it to the community to decide. Mine is merely one vote, 5 are needed [or a mod]. The answer for Win10, btw, is still "you can't" – Tetsujin – 2018-08-24T16:35:24.240

Answers

6

You purchase a license that allows you to run the RDP host as a terminal server. The reason the screen locks like this when using RDP is that consumer licenses of Windows allow no more than one active session at a time. The only reliable way around this that lets you continue to use RDP is to get the system licensed as a terminal server, which is expensive and may require an Enterprise or Education edition license.

Alternatively, there are multiple other options for remote access to a Windows system. If you only care about access from the local network, VNC is probably your best bet (unless you need the session to be encrypted). If you need offsite access, you can find a number of options for it online that not only don't involve RDP, but also give a nice visible indication that someone is remotely connected to the session (and often provide some kind of chat functionality for the local user to talk with the remote user).

Austin Hemmelgarn

Posted 2018-08-24T15:45:36.533

Reputation: 4 345

0

I don't know of a way to disable the lock screen specifically when an RDP session is connected.

You could perhaps run during the session the free utilities of Insomnia or Caffeine to fool Windows into believing that some activity is going on.

Alternatively, you could do Disable Windows 10 Lock Screen, although this will have an effect everywhere.

harrymc

Posted 2018-08-24T15:45:36.533

Reputation: 306 093

1The screen locking isn't due to lack of local activity. Consumer Windows licenses only allow for at most one user session to be 'active' at a time. The screen locking when someone connects over RDP is Microsoft's way of enforcing this. – Austin Hemmelgarn – 2018-08-24T19:17:58.080

This was since always a marketing decision by Microsoft to promote its costlier versions. There are hacks around it but they contradict the license. – harrymc – 2018-08-24T19:55:30.820

0

I found a solution on replacement of restarting the machine.

  1. Open Command Prompt and run the command query session and get the “Session Id” of “RDP”.

  2. Create a Bat file (close.bat) with the below content:

    echo off
    tscon %sessionId% /dest:console
    

    Note: Replace Session Id with the result of Step 1.

  3. Place the bat file on desktop.

  4. Run the bat file with the admin privilege instead of disconnecting from the session.

Urumanathan Palanivel

Posted 2018-08-24T15:45:36.533

Reputation: 1

0

Name the file "Something.ps1" Place below in .ps1 txt file.

param($minutes = 250) $myshell = New-object -com "Wscript.Shell" for ($i = 0; -lt $minutes; $i++) { Start-Sleep -seconds 120 $myshell.sendkeys(".") }

Open notepad and it will start filling with (.) after 120 seconds.

TA-AZ

Posted 2018-08-24T15:45:36.533

Reputation: 1

Please explain how this answers the question.  Please do not respond in comments; [edit] your answer to make it clearer and more complete. – G-Man Says 'Reinstate Monica' – 2019-08-10T01:10:22.603