Answer the question
In order to leave comments, you need to log in
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
Alternatively, you can hang a trigger through the scheduler for a specific event
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.
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
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 questionAsk a Question
731 491 924 answers to any question