Как прекратить сеанс удаленного рабочего стола в Windows 2012?

21722
TOMMY WANG

привыкнуть к «старому миру» диспетчера терминальных сессий, но потратил последний час, пытаясь выяснить эквивалент в Windows 2012 R2, все, что мне нужно, это прекратить сеанс на другом сервере (как-то застрял), немного погуглил, но я все найти способ настроить службу, мне просто нужен простой инструмент или даже командная строка

пожалуйста помоги!

1

1 ответ на вопрос

3
Frank Thomas

There doesn't seem to be equivalent tooling built into Win2k12, as it has been partially replaced by the Remote Desktop Management Server components, but does not give you a nice listing of sessions anywhere I've seen.

The easiest way for most users would be to use the Task Manager's User tab. you can usually boot users from there. For CLI, You can end the session via the command line, using quser and logoff (list sessions with quser, and logoff the session id you desire). you can use psexec if you need a remote cli connection to the server.

PS C:\Windows\system32> quser USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME >SomeUser console 1 Active none 8/16/2015 5:29 PM PS C:\Windows\system32> logoff <sessionID> 

There are many good ideas on this thread over at serverfault as well, including power shell commands (Get-RDUserSession/Disconnect-RDUser), RDC command line utilities (qwinsta/rwinsta), and even options to make tsadmin.msc work if copied from an older server.

Or you can try a third party tool like one of these (just examples, not recommendations):

Похожие вопросы