Solved

kill all RDP sessions from all domain joined servers for a specific user in AD

Posted on 2016-08-29
4
138 Views
Last Modified: 2016-09-08
Hello Experts,

I have a customer who his admin account is being locked from AD very random. After checking all security logs, more specifically for 4740 events, we can identify the source of the locked accounts appears to be a domain controller in Azure. My client has a hybrid AD-Azure and Office 365- Exchange 2010.



So, I've been looking for a tool that can kill all RDP sessions of a user named Jdoe for all Windows servers in a domain.



Are you aware of such as that tool, script, or PowerShell cmdlet that kills all RDP sessions from all windows servers in a domain?



If so, can you please provide instructions step by step to perform the tasks



Please, make sure to test your script, cmdlet, or tool, and send screenshots with results



Thanks
0
Comment
Question by:Jerry Seinfield
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Ganesamoorthy S earned 500 total points
ID: 41775094
configure timeout session through GPO to fix this issue permanently

https://technet.microsoft.com/en-us/library/cc754272(v=ws.11).aspx

or use below command to kill the session

quser /server:servername

and notedown the session

logoff /server:servername session ID
1
 

Author Comment

by:Jerry Seinfield
ID: 41775189
so, the GPO will be applied to only this user?
0
 
LVL 6

Expert Comment

by:Ganesamoorthy S
ID: 41775195
you can configure this for user OU or server OU and configure Computer Configuration and the User Configuration policy settings
0
 

Author Comment

by:Jerry Seinfield
ID: 41775204
I would like to clarify, that I would like to be able to close all RDP sessions from all servers only to one user.

can you please elaborate on this?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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