Remote Desktop in a PC

Ones_Zeros

Member
Join Date
Feb 2014
Location
at work
Posts
367
When I remote desktop into my pc to check a PLC and after I disconnect, it always leaves the PC at a ctrl+alt+del state.

Is there a way to remote desktop into a pc but leave it on the desktop after disconnecting? Reason I have several pc's in the field that maintenance personnel uses but if i remote in to check things and after disconnecting they cant see the screen. Id rather them not know the password and they have to ctrl+alt+del to get back into the desktop.


thanks,
 
I think that's just inherently how windows handles RDP.



You could try VNC instead. It uses screen mirroring, instead of stealing the session.
 
There are actually a couple of different versions of VNC. I often use TightVNC, which is definitely free.

https://www.tightvnc.com/

RealVNC has a paid / enterprise subscription, but I haven't used it.

My company pays for remote administration using TeamViewer because it gives us the security and VPN services we need. Not everyone will need that.
 
VNC is a protocol. There are a ton of different packages that use it. In theory most of them should work together. Many vendors also use it as a feature for remote viewing their HMI systems, although their marketing teams call it something else.


I'd 2nd TightVNC, free and open source is the way to go.
 
As far as locking the computer at the end of a session there is a setting (in TeamViewer and VNC Server) to lock or not.

In VNC - Options - Expert - DisconnectAction you can set Lock, LogOff or None

In TeamViewer it is Lock Remote Computer and can be Always, Automatic (which is always too) or Disabled.
 
I have run into this issue before. If you have autologon configured. You can reboot the PC at the end of your remote session. It will then reboot and be ready for the maint. users.

If you can RDP into a PC to see a PLC, why not just connect directly, bypass the PC.
 
If you can RDP into a PC to see a PLC, why not just connect directly, bypass the PC.

Dunno if that's what is happening here, but there's at least one reason: systems with a maintenance PC that bridges the network airgap.

I've seen a lot of systems where a PC on the plant floor acts like a (non-routing) bridge between the plant network and the control network with a NIC going to each. The PC stores all the PLC projects and has full licenses for engineering software. Engineers can remote in from anywhere and are almost guaranteed to have the up to date project and the correct software versions. The PLCs aren't accessible directly. It costs more up front, but can simply things later on.

It's starting to get more common to VPN directly to a machine, but I saw this model a lot in years past.
 
Last edited:
If you want to stick with RDP, what you are asking for is actually possible. I found a way to do that with some creative googling a while ago and it works with Windows 10 at least. Save the text below all on one line as a file with a .cmd extension, and then when you are ready to disconnect, right click the file and select "Run as Administrator". You will get a message saying that you have been disconnected because another user connected, and your on site users will get their screen back without having to log back in.
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$sessionid=((quser $env:USERNAME | select -Skip 1) -split '\s+')[2]; tscon $sessionid /dest:console" 2> UnlockErrors.log
 
The term for what mk42 described above is a "Jump server" and it's a popular way of doing remote support.

We also uses it for doing a lab, using Server OS, it allow us to play with many different PLC, switches, and HMI remotely without being in the office and the Server OS allows multiple RDP sessions.
 

Similar Topics

Good afternoon all, hope yall are well. Is there any program available which allows me to remote in on a client's laptop, but run the programs on...
Replies
14
Views
1,405
For my first time, I put a copy of Studio 5000 and Factory Talk Activation Manager on my customer's machine (On-logic Windows PC), then use remote...
Replies
3
Views
2,481
I am hoping someone here can help me out with Remote Desktop Connection Manager. On my clients an on my ThinManager server my screens size fine...
Replies
0
Views
694
Hello: Did a project some months ago for a customer. It is a Windows 10 application running on an industrial PC which is not connected to the...
Replies
17
Views
3,530
I teach at a University and have good experience with students using Studio 5000 via Remote Desktop app. While this has worked for over 100...
Replies
3
Views
1,763
Back
Top Bottom