Как убить RDP сессию удаленно?

Сегодня понадобилось убить удаленную сессию на машине не имея к ней доступа (зависла моя сессия). Оказывается, все очень просто…

Open your command prompt and from the directory that contains the psexec utility, do the following

1) psexec \\x.x.x.x -u user -p password cmd (this will give you access to the command prompt on the server)
Example: psexec \\127.0.0.1 -u admin -p password cmd
2) once you get the command prompt run the command qwinsta to get a list of all connections. Each connection has an Id Number.
3) Run the command logoff [id# of session to quit] /v (this will kill the connection with that id #)
Example: logoff 2 /v

Вот и все.
Решение не мое, нашел тут – http://hariprasad.info/killing-user-session-remotely-windows/, однако публикую у себя, для будущего меня :D

This entry was posted in Жизнь сисадминская and tagged , , , , . Bookmark the permalink.

Comments are closed.