Link to home
Start Free TrialLog in
Avatar of john lambert
john lambert

asked on

how to see when and who log off my rdp session?and how to block that?

First of all i wanna know how to block,hide anyone to end my rdp session ,also.........mmm  i wanna know if there is a solution to see who log off my rdp session?any command for powershell?can anyone help me?thank you
Avatar of Qlemo
Qlemo
Flag of Germany image

If you need to have RDP allowed, all you can do is to disallow login for anybody else, by removing the Interactive Login privilege.
Avatar of john lambert
john lambert

ASKER

i have administrator rights,me other 3 persons, so i can't do that
There is no way on a client Windows OS. A server OS is different, if different users are used. But a client OS only allows one active login (RDP) at any time, others are suspended (if Fast User Switching is allowed, otherwise logged off) after notice.
If the same login is used, the session is taken over without notice, even if the original RDP session is still active and connected.

For scenarios where multiple user are able to connect to a single machine with the same user in our company, I have set up a remote test for active RDP session, and stopping the connect attempt if there is one. This requires to run a batch file instead of mstsc.
can u create a batch file pls?
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial