RDP Log Off

0 vote

avatar

Don't know if this is possible, bur I would really love a "Log Off" especially for RDP connections, and a similar Log Off Group.

Thanks,
Ole Thomsen

All Comments (7)

avatar

Hi,
It's not directly possible, but if you have the right access, it will be possible to call shutdown.exe. We have a session addon in development for that. We hope to have the time to release in the next few weeks.

David Hervieux

avatar

David, via psexec tool, you can call appropriate fucntions to either log off sessions or whatever. could something like this be inmplemeted, to log off rdp sessions

avatar

Hi,
I already found a way of doing that, by using the Terminal API. It's now on my todo list. Also, in the latest beta, it's now possible to call PSExec (via the session tools) but I don't know how we could logoff with that because it's not executed necessarily in your session. Maybe you have an idea?

David Hervieux

avatar

the idea is that when you attempt to connect to a particular box/server, you can't as rdp sessions are in use or maxed out. the process would be to get a rdp/sessons list for a particualr server, just like how the royal ts does. then it'll ist the sessions and will show you active/disconnected sessions and then you can select a session to log off.

psexec;

C:\psexec \ServerName -u Domain\UserID cmd

here ServerName was the name of the remote server I needed to access and Domain UserID was the username I wanted to use to log on to that server. The cmd argument told PsExec to launch an interactive command-prompt session on that server.

Query Session command:

Query Session

The output showed the user IDs of the administrators who were connected to the server. I was then able to use the following Logoff commands with the administrators’ IDs to log off those administrators:
Logoff 2
Logoff 3
Afterward, I reran the Query Session command to see if those administrators were logged off. The Logoff commands were successful.

above from; http://www.windowsitpro.com/article/remote-computing/psexec-to-the-rescue.aspx


other links;
http://v3.code4ward.net/main/Support/Forum/tabid/61/forumid/4/threadid/215/scope/posts/Default.aspx

avatar

Therefore the log off group shoud enumerate the servers in that group and log off each session on either all sessions to that server or based on a particualr username connection

avatar


You must be very careful while applying any solution because sometimes many forum members are not able to answer the question but still they answer it anyhow. So, It's important to confirm the solution and then apply it. I have found useful content on this topic here is the link (https://eleggible.com/allow-multiple-ts-sessions/) you can refer to this. It might be useful for you.

avatar

dude seriously? your first and only post is to resurrect a thread from 9 years ago? spam much?