Server 2012 R2: Kill multiple RDP sessions

Hi.

Is there a way to kill a number of RDP-sessions (but not all!) off one RDP host at once?

Thanks,
Ralph
LVL 2
Ralph ScharpingDigital TherapistAsked:
Who is Participating?
 
Dirk KotteConnect With a Mentor SECommented:
mostly i logon to TS and use these commands:

quser  - list of all sessions
logoff 3 && logoff 11 && logoff 18 && logoff

this make a logoff for session 3,11,18 any my own at the end
0
 
ZenVenkyArchitectCommented:
I guess you are trying to accomplish of closing RDP session on a server without logging on to that server. If your answer is yes, the try this

TSADMIN
0
 
Ralph ScharpingDigital TherapistAuthor Commented:
I am trying to get several users off the server.
TSadmin will let me kill one session at a time.
I want to disconnect more than one user in one go.
0
 
Dirk KotteConnect With a Mentor SECommented:
it is possible to use these commands remotely also.
QUSER /SERVER:Servername
LOGOFF session-ID /SERVER:Servername
check:
QUSER /?  and  LOGOFF /?
these commands are usable within a script
0
 
Ralph ScharpingDigital TherapistAuthor Commented:
Thanks a lot!
0
All Courses

From novice to tech pro — start learning today.