H
H
HockeyNN2021-11-16 22:13:17
RDP
HockeyNN, 2021-11-16 22:13:17

How to end a terminal user session when certain conditions are met?

Dear experts, I have a problem. There are about 25 terminal users on the server (win 2016 standart without AD), you need to configure the work of one of them so that his session ends when a specific user or one of a specific group of users logs in. Please help with advice, maybe someone came across.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-11-16
@HockeyNN

not very beautiful, but it will work:
create a task in the scheduler to end the user session with the shutdown -l command and register the user in the criteria for the task, without launch conditions,
in autostart to another user, insert the launch of this task schtasks run / tn task_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question