Solved

Server 2012 R2:  Kill multiple RDP sessions

Posted on 2016-09-22
5
44 Views
Last Modified: 2016-09-29
Hi.

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

Thanks,
Ralph
0
Comment
Question by:Ralph Scharping
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:Zenvenky
ID: 41811356
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
 
LVL 2

Author Comment

by:Ralph Scharping
ID: 41811386
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
 
LVL 23

Accepted Solution

by:
Dirk Kotte earned 500 total points
ID: 41815384
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
 
LVL 23

Assisted Solution

by:Dirk Kotte
Dirk Kotte earned 500 total points
ID: 41815389
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
 
LVL 2

Author Closing Comment

by:Ralph Scharping
ID: 41821241
Thanks a lot!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Table of Contents: Lesson 1 - Installing Windows Server 2012 (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/A_11592-Become-an-Administrator-Installing-Windows-Server-2012.html) Lesson 2 - Configuring Ser…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now