Log Off not working

avatar

I am able to right click on an open session and choose to close it and it works but does not log off the user session. If I choose to log off nothing happens. This is especially cumbersome when a large number of sessions need to be logged off at the same time. Please advise what needs to be done configuration wise to grant this functionality.

All Comments (3)

avatar

I'm assuming RDP sessions.

We use WTSLogoffSession to perform the RDP LogOff (by default other options are available, see below). Getting this to work is not trivial.
Have a look at this help topic: http://help.remotedesktopmanager.com/index.html?troubleshooting_logoffaccessdeniederror.htm

The other option is to use the RDM Agent (small install) on each server. Then in RDM when your perform a RDP LogOff it will be done via the RDM Agent and all will work.

FYI you can set/change the default LogOff method (see here: http://help.remotedesktopmanager.com/index.html?file_options_sessiontype_rdp.htm). I would suggest you leave it to Automatic since in this mode we will use the RDM Agent to perform the LogOff if available if not we fallback the Remote Desktop Services API (WTSLogoffSession).

Note: the help calls it WMI, it's wrong, it should be Remote Desktop Services API

Best regards,

Stéfane Lavergne

avatar

Thank you sir.

avatar

RDM Agent has running footprint of about 7.5MB and an on disk footprint of 4 files for a total of 984KB

On install, RDM Agent is set to auto-start with session logon and will sit there listening for the RDP close/open messages. Once a session is opened it can receive messages via RDM. If ever the RDP session is not an RDM RDP session it won't do anything.

For a high level overview of RDM Agent's capabilities, please read: http://blog.devolutions.net/2014/06/rdm-agent.html

Please note, RDM Agent will only work if the sessions is an embedded RDP session. In the case where you want/need to work external you must set the display mode to undocked instead of external (see Display Mode: http://help.remotedesktopmanager.com/index.html?settings_general_displaymode.htm)

Best regards,

Stéfane Lavergne