G
G
gogorsh2016-02-24 14:11:33
Windows
gogorsh, 2016-02-24 14:11:33

How to configure logout when closing rdp.exe?

In order.
Given: Microsoft Windows Server 2012r2, on which the terminal server is running. workstations with windows 7 and 8. On which, at the entrance, the rdp client is launched and connected to the terminal server. All this in AD and with GPO.
Task: Set up logout on workstations when closing the rdp client.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vitaly Pukhov, 2016-02-24
@gogorsh

Alternatively, you can hang a trigger through the scheduler for a specific event

R
res2001, 2016-02-24
@res2001

Option 1: launch a terminal session, for example, from a batch file that would wait for the terminal session to end: start /wait mstsc ...., and the next command - shutdown -l
Option 2: make mstsc a shell for the user with the appropriate parameters, then logout will be automatic after the end of the rdp session.

N
nfire, 2016-02-24
@nfire

If the work is only in terminal sessions, then it is easier to make a download over the network.
Well, or here is your option - https://habrahabr.ru/post/245183

V
vreitech, 2016-02-24
@fzfx

The best option seems to me to receive the application close event using WMI and perform a logout action. Unfortunately, I hardly work with WMI myself, I can’t find a suitable ready-made example.
www.ekzorchik.ru/2012/04/wmi-admin
https://bsmadhu.wordpress.com/2012/06/28/monitor-p...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question