Solved

Server 2012 R2:  Kill multiple RDP sessions

Posted on 2016-09-22
5
31 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks a lot!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
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…

771 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